Format time and date
using System;
class MainClass {
public static void Main() {
DateTime dt = DateTime.Now;
Console.WriteLine("Time with seconds: " + "{0:HH:mm:ss tt}", dt);
}
}
Output Time with seconds: 13:53:57 PM
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
|