DateTime to string format in c#
|September 17, 2014||Posted by forumadmin under TechQns||
I am having some trouble converting a DateTime variable to string.
I want to display the time using a 12-hour clock including the
With the following code:
string timeStr = PaymentDate.ToString("hh:mm tt");
I will get
"11:39" but the
PM/AM is not showing. Any guess?
|Asked By – Bonomi||Read Answers|