Date handling functionality.

Contains methods to manipulate Dates.

Methods

Name Description
AgeAsText Gets the text value of an Age.
AgeInYears Calculates a person's Age.
BeginningOfMonth Returns the Beginning of the Month based upon the specified date.
CastNullableDateToDate Cast a Nullable Date to an Date, assuming Null=Nothing.
CastToNullableUtcDate Cast an existing Date value to a .NET Nullable Date with a DateTimeKind of 'UTC' without affecting the date but removing the time.
CastToNullableUtcDateTime Cast an existing Date value to a .NET Nullable Date with a DateTimeKind of 'UTC' without affecting the date or time.
CastToUnspecifiedDate Cast a Nullable Date to a .NET Nullable Date with a DateTimeKind of 'Unspecified' without affecting the date but removing the time.
CastToUnspecifiedDateTime Cast a Nullable Date to a .NET Nullable Date with a DateTimeKind of 'Unspecified' without affecting the date or time.
CastToUtcDate Cast a Nullable Date to a .NET Nullable Date with a DateTimeKind of 'UTC' without affecting the date but removing the time.
CastToUtcDateTime Cast a Nullable Date to a .NET Nullable Date with a DateTimeKind of 'UTC' without affecting the date or time.
ConvertIso8601StringToUtcDate Converts an ISO 8601 formatted string to a UTC Date/ Time.
ConvertTextToExpiryDate Converts a "Expiry Date" Text string to a Date (always End of Month)
ConvertToDate Converts a Variable to the equivalent Date Variable Type - IGNORES TIME
ConvertToDateRange Convert a String value to an ISDateRange object.
ConvertToDateTime Converts a Variable to the equivalent Date Variable Type - including the time if found
ConvertToNullableDate Converts a Variable to the equivalent Nullable Date Variable Type - IGNORES TIME
ConvertToNullableDateTime Converts a Variable to the equivalent Nullable Date Variable Type - including the time if found
ConvertToTime
ConvertUnixMillisecondTimestampToUtcDate Converts a Unix Timestamp (milliseconds) to a UTC Date/ Time.
ConvertUnixTimestampToUtcDate Converts a Unix Timestamp (seconds) to a UTC Date/ Time.
ConvertUtcDateToIso8601String Converts a UTC Date/ Time into an ISO 8601 formatted string.
ConvertUtcDateToUnixMillisecondTimestamp Converts a UTC Date/ Time to a Unix Timestamp (milliseconds).
ConvertUtcDateToUnixTimestamp Converts a UTC Date/ Time to a Unix Timestamp (seconds).
DayMonthYearOrderFromFormatString Returns a string showing the order of Day, Month and Years in the format string passed in.
DayOfMonthOrdinalWord Returns the Ordinal (superscript) word for a day of the month, e.g., 1st, 2nd, 3rd, 4th etc.
DaysInMonth Returns the number of days in the Month (based upon the specified date).
EasterSunday Find the date of Easter Sunday for the specified year.
EndOfMonth Returns the End of the Month based upon the specified date and optional the number of months to increment by.
EndOfNextMonth Returns the End of the Next Month based upon the specified date.
EndOfPreviousMonth Returns the End of the Previous Month based upon the specified date.
FirstDayOfWeekInMonth Find the first selected day in the month, eg; the first Monday of the month.
GetCurrentDate System Use Only Obsolete Returns the current computer's Date.
GetCurrentDateTime System Use Only Obsolete Returns the current computer's Date and Time (rounded to the nearest second).
GetCurrentTime System Use Only Obsolete Returns the current computer's Time (rounded to the nearest second).
GetCurrentUtcDateTime System Use Only Obsolete Returns the current UTC (Co-ordinated Universal Time) Date and Time.
IsEndOfMonth Returns True if the date is at the end of the month.
IsLeapYear Check to see if a Year is a Leap Year.
IsValidEditFormatString Returns True is the formatString is valid to use as an format string for editing.
MonthsDifference Returns the "whole" number of Months between two dates. Times are ignored. Dates are exclusive, ie send 1/1 to 1/2 (=1 month, 0 days) not 1/1 to 31/1.
MonthsDifferenceRoundedUp Returns the number of Months between two dates, rounded up if there are any extra days. Times are ignored. Dates are exclusive, ie send 1/1 to 1/2 (=1 month, 0 days) not 1/1 to 31/1.
MoveSatSunToMonday If the date entered is a Saturday or a Sunday, return the date for Monday, otherwise return the date entered.
MoveSatToFridayAndSunToMonday If the date entered is a Saturday move to Friday, if a Sunday move to Monday, otherwise return the date entered.
MoveSunToMonday If the date entered is a Sunday, return the date for Monday, otherwise return the date entered.
MoveToDayOfWeek Finds the next date, including the date specified, that falls on the day of the week specified.
PeriodToWords Get a Period expressed in Words. Dates are exclusive, ie send 1/1 to 1/2 (=1 month, 0 days) not 1/1 to 31/1.
PeriodToWordsWithHint Get a Period expressed in Words. Dates are exclusive, i.e. send 1/1 to 1/2 (=1 month, 0 days) not 1/1 to 31/1.
Time Returns to Time portion of a Date value.
ToLocalTime System Use Only Obsolete Convert the Date in Universal Time to a Date in Local Time.
ToUniversalTime System Use Only Obsolete Convert the Date in Local Time to a Date in Universal Time.
YearCentury Returns the Year including the Century. If the year is only two digits will intelligently add the century.

Properties

Name Description
DateFormatLong
DayMonthYearOrderDefault The Format string to use when converting dates if none is specified in the conversion function.
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0