CorLib  

CorDateTimeStatic

CorDateTimeStatic overview

Public:

Types:
DateTimeKind Used to specify the type of CorDateTime object.  
DayOfWeek This enumeration represents the days of the week as used by CorDateTime and Calendars.  
Properties:
MaxValue (get) Returns the maximum CorDateTime representation.  
MinValue (get) Returns the minimum CorDateTime representation.  
Now (get) Returns a CorDateTime that represents the current time on the local machine.  
Today (get) Returns a CorDateTime that represents only the current date. The time portion is not present.  
UtcNow (get) Returns a CorDateTime that represents the current time with the UTC offset.  
Methods:
DaysInMonth Returns the number of days in a Gregorian calendar month.  
Equals Returns a value indicating whether two Date or CorDateTime instances have the same date and time value.  
FromBinary Creates a CorDateTime object from a 64-bit currency value.  
FromFileTime Creates a CorDateTime object from an operating system file timestamp.  
FromFileTimeUtc Returns a CorDateTime object from a FileTime value.  
FromMilliseconds Returns a CorDateTime object from milliseconds.  
FromOADate Returns a CorDateTime object from a VB Date value.  
IsLeapYear Returns a boolean indicating if the specific Gregorian year is a leap year.  
Parse Parses a string representation of a date into a CorDateTime object.  
SpecifyKind Creates a new CorDateTime object with the specified DateTimeKind.  
TryParse Attempts to parse a string representation of a date into a CorDateTime object.  

See Also