DateTimeDriver
The DateTimeDriver allows for easy manipulation and parsing of dates and times.
Constructors
|
Constructor
|
Initializes a new instance of the DateTimeDriver class.
Arguments:
(void)
(Value)
(Year, Month, Day)
(Year, Month, Day, Hour, Minute, Second)
|
Methods
|
AddDays
|
Increments or decrements by days with the specified argument.
|
|
AddHours
|
Increments or decrements by hours with the specified argument.
|
|
AddMinutes
|
Increments or decrements by minutes with the specified argument.
|
|
AddMonths
|
Increments or decrements by months with the specified argument.
|
|
AddSeconds
|
Increments or decrements by seconds with the specified argument.
|
|
AddYears
|
Increments or decrements by years with the specified argument.
|
|
BuildDateData
|
Internal method used to populate properties with default values.
|
|
Diff
|
Returns a collection containing keys representing the temporal differences between the objects set time and the specified argument.
|
|
Now
|
Returns a new DateTimeDriver object set to the current date and time.
|
|
OrdinalSuffix
|
Returns the ordinal suffix appended to the specified argument value.
|
|
Parse
|
Returns a DateTimeDriver object set to the time value of the parsed specified argument.
|
|
RefreshProperties
|
Internal method used to refresh properties values.
|
|
Set
|
Returns a DateTimeDriver object set to the arguments specified.
Arguments:
(Year, Month, Day)
(Year, Month, Day, Hour, Minute, Second)
|
|
SetMaxValue
|
Sets the object to the maximum time value that is able to be represented in the current environment.
|
|
SetMinValue
|
Sets the object to the minimum time value that is able to be represented in the current environment.
|
|
ToString
|
Returns a string date value with the specified argument string pattern.
|
Properties
|
DateTime
|
Stores the environment specific date manipulation object. |
|
Day
|
Stores the day of the month. |
|
DayName
|
Stores the day of week. eg. Tuesday. |
|
DayNameAbbr
|
Stores the day of week. eg. Tue. |
|
DayNames
|
Stores an array of full day names. |
|
DayNamesAbbr
|
Stores an array of abbreviated day names. |
|
DayOfWeek
|
Stores the integer value for the day of the week. |
|
DayOfYear
|
Stores the integer value for the day of the year. |
|
DaysInMonth
|
Stores the integer value for the days in the month. |
|
DaysInYear
|
Stores the integer value for the days in the year. |
|
EndDayOfMonth
|
Stores the integer value representing the end day of the month. eg 1 is Monday. |
|
Hour
|
Stores the integer value representing the hour. eg 14 is 2:00 pm. |
|
IsLeapYear
|
Stores a boolean value representing whether the year is a leap year. |
|
MaxValue
|
Stores the maximum time value that is able to be represented in the current environment. |
|
Minute
|
Stores an integer value representing the minute. |
|
MinValue
|
Stores the minimum time value that is able to be represented in the current environment. |
|
Month
|
Stores an integer value representing the month. eg. 12 is December. |
|
MonthName
|
Stores the month name. eg. September. |
|
MonthNameAbbr
|
Stores the month name. eg. Sept. |
|
MonthNames
|
Stores an array of full month names. |
|
MonthNamesAbbr
|
Stores an array of abbreviated month names. |
|
Second
|
Stores an integer value representing the second. |
|
StartDayOfMonth
|
Stores the integer value representing the start day of the month. eg 1 is Monday. |
|
WeekOfYear
|
Stores an integer value containing the week of the year. |
|
WeeksInYear
|
Stores an integer value containing the total weeks in the year. |
|
Year
|
Stores an integer value containing the year. eg. 1989. |
|