DateTimeOffset includes a DateTime value, together with an Offset property that defines the difference between the current DateTimeOffset instance's date and time and Coordinated Universal Time (UTC). DateTimeOffset represents dates and times with values whose UTC ranges from 12:00:00 midnight, January 1, 0001 Anno Domini (Common Era), to 11:59:59 P.M., December 31, 9999 A.D. (C.E.).
3.5, 3.0, 2.0, 1.1, Silverlight mscorlib.dll
C#
 
DateTime date1 = new DateTime(2008, 3, 1, 7, 0, 0);
VB
 
Dim date1 As Date = #3/1/2008 7:00AM
  • Is this Answer helpful?
  •  
  • Yes 
  •  
  • No