Represents methods to create cDateTime objects from various data sources.
These methods are considered static. The cDateTimeStatic cannot
be directly instantiated. Use these methods withe cDateTime.* syntax.
Dim dt As cDateTime
Set dt = cDateTime.FromOADate(#1/1/2001 8:30:00 AM#)
A quicker way to create a cDateTime object is to use the NewDate method.
Set dt = NewDate(#1/1/2001 8:30:00 AM#)
This will create a new instance of cDateTime with the supplied date value.
Project VBCorLib Overview
| DateTimeKind||Used to specify the type of cDateTime object. |
| DayOfWeek||This enumeration represents the days of the week as used by cDateTime and Calendars. |
| MaxValue (get)||Returns the maximum cDateTime representation. |
| MinValue (get)||Returns the minimum cDateTime representation. |
| DaysInMonth||Returns the number of days in a Gregorian calendar month. |
| FromBinary||Creates a cDateTime object from a 64-bit currency value. |
| FromFileTime||Creates a cDateTime object from an operating system file timestamp. |
| FromFileTimeUtc||Returns a cDateTime object from a FileTime value. |
| FromMilliseconds||Returns a cDateTime object from milliseconds. |
| FromOADate||Returns a cDateTime object from a VB Date value. |
| IsLeapYear||Returns a boolean indicating if the specific Gregorian year is a leap year. |
| Now||Returns a cDateTime that represents the current time on the local machine. |
| Parse||Parses a string representation of a date into a cDateTime object. |
| SpecifyKind||Creates a new cDateTime object with the specified DateTimeKind. |
| Today||Returns a cDateTime that represents only the current date. The time portion is not present. |
| TryParse||Attempts to parse a string representation of a date into a cDateTime object. |
| UtcNow||Returns a cDateTime that represents the current time with the UTC offset. |