DateTime objToInvariant

From Catglobe Wiki
Jump to: navigation, search


DateTime_objToInvariant

Convert datetime object to string.

Syntax

DateTime_objToInvariant(DateTime date)

Arguments

date: Is DateTime object, which is datetime to be convert

Return type

string datetime format is yyyy-MM-dd hh:mm:ss

Examples

DateTime dt = new DateTime("2009/4/5");
string a = DateTime_objToInvariant(dt);
print(a);//2009-04-05 00:00:00