SRP_Date provides several services to easily manipulate BASIC+ dates. SRP_Date provides the following services:
Service | Description | Version Added |
---|---|---|
AddDays | Adds days to a date. | 2.1.5 |
AddMonths | Adds months to a date. | 2.1.5 |
AddYears | Adds years to a date. | 2.1.5 |
Day | A date's day. | |
DayOfWeek | A date's the day of the week. | |
DayOfWeekName | A day of the week's name in a given locale. | |
DayOfWeekNames | All the day of the week names in a given locale. | |
DayOfYear | A date's day of the year. | |
DaysInMonths | The number of days in a given month of a given year. | |
DaySpan | The number of days between dates. | 2.1.5 |
Decode | Decodes a date into a dynamic array of information about that date. | |
Encode | Creates a date from a given year, month, and day. | |
FirstDayOfWeek | The first day of the week for a given locale. | |
Format | Formats a date using a given locale. | |
IConv | Supports using SRP_Date in an IConv. | |
IsLeapYear | Determines if a given year is a leap year. | |
Month | A date's month. | |
MonthName | A month's name in a given locale. | |
MonthNames | All the month names in a given locale. | |
MonthSpan | The number of months between dates. | 2.1.5 |
OConv | Supports using SRP_Date in an OConv. | |
Parse | Parses a string into a date. | |
Span | The number of days between dates. | 2.1.5 |
Today | Today's date in local or UTC time zones. | |
Validate | Determines if the given date is a real date. | |
Year | A date's year. | |
YearSpan | The number of years between dates. | 2.1.5 |