Construction Methods
Method | Description | |
---|---|---|
COleDateTime | Constructs a COleDateTime object. | |
GetCurrentTime | Creates a COleDateTime object that represents the current time. This is a static method. |
Attributes Methods
Method | Description | |
---|---|---|
GetAsSystemTime | Converts the time in a SYSTEMTIME data structure into an COleDateTime object. | |
GetStatus | Retrieves the status (validity) of this COleDateTime object. | |
SetStatus | Sets the status (validity) of this COleDateTime object. | |
GetYear | Returns the year this COleDateTime object represents. | |
GetMonth | Returns the month this COleDateTime object represents (1 – 12). | |
GetDay | Returns the day this COleDateTime object represents (1 – 31). | |
GetHour | Returns the hour this COleDateTime object represents (0 – 23). | |
GetMinute | Returns the minute this COleDateTime object represents (0 – 59). | |
GetSecond | Returns the second this COleDateTime object represents (0 – 59). | |
GetDayOfWeek | Returns the day of the week this COleDateTime object represents (Sunday = 1). | |
GetDayOfYear | Returns the day of the year this COleDateTime object represents (Jan 1 = 1). |
Operations Methods
Method | Description | |
---|---|---|
Format | Generates a formatted string representation of a COleDateTime object. | |
ParseDateTime | Reads a date/time value from a string and sets the value of COleDateTime. | |
SetDate | Sets the value of this COleDateTime object to the specified date-only value. | |
SetDateTime | Sets the value of this COleDateTime object to the specified date/time value. | |
SetTime | Sets the value of this COleDateTime object to the specified time-only value. |