// Datetime. parse () is used to convert a specified string to the datetime type. Of course, the string must conform to a certain format // it cannot be a ticks (18-digit long integer ), if it is a string, it can only be the following style Writing console. writeline (datetime. parse ("2012/12/12 "));------------------------------
// There are many common methods to construct a datetime.
Datetime dt = new datetime (621355968000000000); // datetime dt = new datetime (); int A = int. parse ("1"); console. writeline (a); console. writeline (datetime. minvalue + "" + datetime. maxvalue + "" + dt. kind + "" + dt. ticks );
Console. writeline (Dt. date );
Console. readkey (); ---------------- datetime dt = new datetime (int32 3, 23 );
Datetime dt2 = DT. adddays (1 );
Console. writeline ("Today is {0}, tomorrow is {1}", datetime. Now, dt2.date); console. readkey ();