M
Maziar Aflatoun
Hi,
Can someone please tell me how I can set DateTime to 01/01/1970 (UTC).
Doing the following
DateTime dt1 = new DateTime(1970, 1,1);
Debug.WriteLine("dt1(utc):"+ dt1.ToUniversalTime().ToString());
Doing the following returns 1/1/1970 5:00:00 AM
However, I want to set the DateTime so that it would return 1/1/1970
12:00:00 AM instead.
Basically force DateTime(1970,1,1) to be UTC.
Thanks
Maz.
Can someone please tell me how I can set DateTime to 01/01/1970 (UTC).
Doing the following
DateTime dt1 = new DateTime(1970, 1,1);
Debug.WriteLine("dt1(utc):"+ dt1.ToUniversalTime().ToString());
Doing the following returns 1/1/1970 5:00:00 AM
However, I want to set the DateTime so that it would return 1/1/1970
12:00:00 AM instead.
Basically force DateTime(1970,1,1) to be UTC.
Thanks
Maz.