How can type PM or Am in time format. Example 7.30 PM

How can type PM or AM in time format. Example: 7.20.40 PM

@Sabbir_Anwar

tt is the abbrevation for time with am and pm

So say you qnat the current date and timw in am/pm format then

Now.ToString("MM/dd/yyyy hh:mm:ss tt")

If you want single digit then M/d/yyyy h:m:s tt

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.