You could do this...
DateTime.Now.ToString("hh:mm:ss tt")
The "tt" portion of the string will show the AM or PM. the "hh" is for
hours 1-12 (just use one h if you don't want to display a leading
zero), mm for minutes, ss for seconds.
"CCLeasing" <ga**@ccleasing.co.ukwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
i'm currently using the following code without any problem.
txtTime.Text = DateTime.Now.ToString("t")
however, i want the time to be displayed with am or pm after it.
so for instance instead of 15:32, 3:32 pm
how do i do this?
Many Thanks.