Use upper-case HH
for 24h format:
String s = curr.ToString("HH:mm");
See DateTime.ToString Method.
Console.WriteLine(curr.ToString("HH:mm"));
Use upper-case HH
for 24h format:
String s = curr.ToString("HH:mm");
See DateTime.ToString Method.
Console.WriteLine(curr.ToString("HH:mm"));