R
rajesh_s76
Hi Gurus,
i am facing problem using ToFileTime() function in DateTime Cass.
1. I set the Date in st;
DateTime st = new DateTime(2006,05,22);
2. i created new datetime variable
DateTime ft = new DateTime();
3.// i assign the st into ft.
ft = st;
4. // Converting to FileTime, its returing long value.
long lVal1 = ft.ToFileTime();
5. for cross checking that Long is correct format or not.
DateTime ft2 = new DateTime( lVal1 );
The problem was date is coming in wrong value.
ft = 22/05/406.
i really dont know it suppose to come 22/05/2006. why it is coming
wrong year?..
is there any problem in my code?..
Kindly clear my code bugs...
Thanks & Regards,
Rajesh. S
i am facing problem using ToFileTime() function in DateTime Cass.
1. I set the Date in st;
DateTime st = new DateTime(2006,05,22);
2. i created new datetime variable
DateTime ft = new DateTime();
3.// i assign the st into ft.
ft = st;
4. // Converting to FileTime, its returing long value.
long lVal1 = ft.ToFileTime();
5. for cross checking that Long is correct format or not.
DateTime ft2 = new DateTime( lVal1 );
The problem was date is coming in wrong value.
ft = 22/05/406.
i really dont know it suppose to come 22/05/2006. why it is coming
wrong year?..
is there any problem in my code?..
Kindly clear my code bugs...
Thanks & Regards,
Rajesh. S