Hi
There is a datetime type with length 8 in a table
I tried to insert the Local System datetime to it from aspx.cs file. But, the outcome are
string sysdatetime = System.DateTime .Now.ToShortDat eString(); //output 1900-01-01 00:00:00.000 in tabl
string sysdatetime = System.DateTime .Now.ToLongDate String(); //output 1900-01-01 00:00:00.000 in tabl
DateTime sysdatetime = System.DateTime .Now; //Compile error. Cannot convert char to datetim
They cannot output today datetime. How should I fix it
And, how can I get only Date 1900-01-01, only Time 00:00:00 or both DateTime 1900-01-01 00:00:00
Thanks