/ Published in: C#
URL: http://www.dotnetfunda.com/forums/thread638-how-to-convert-a-time-in-24-hours-format.aspx
Como convertir tiempo a formato de 24 horas y viceversa.
Expand |
Embed | Plain Text
DateTime d = DateTime.Now; // 12 hour format Response.Write(d.ToString("hh:mm") + " | " ); // 24 hour format Response.Write(d.ToString("H:mm"));
You need to login to post a comment.
