Wednesday, November 5, 2008

Get current time of the day, non-military

Say you wanted to get the current time of the day into a string in the format of something like 05:19 PM.

This is how you do it….

DateTime.Now.ToString("hh:mm tt")

No comments: