Datetime.ToString

Parent Previous Next

Datetime.ToString.

Returns the instance as a string with the date and time.


Syntax.


 ToString() : String

 


Please notice the datetime information is returned in the fixed position format "CCYYMMDD hh:mm:ss.mss".


Example:


 Datetime dtMy.Set(2050, 2, 15, 23, 50, 7, 0);

 String s := dtMy.ToString(); //Now s == "20500215 23:50:07.000";