Predicate function - Date
The date functions are used for validating dates, times, formats, and temporal conditions.
-
Date predicate functions are culture-aware and respect the current tenant or user locale.
-
Functions return false for invalid inputs and do not throw exceptions.
-
Supported inputs include strings, numbers (timestamps), and date objects as applicable.
-
If culture-specific parsing fails, the system falls back to Invariant Culture (English).
-
Several date predicate functions accept culture-sensitive parameters such as month and day names:
- IsMonthOfYear: Accepts month names in any supported culture (for example: "January", "janvier", "Januar", "enero", "1月").
-
IsDayOfWeek: Accepts day names in any supported culture (for example: "Monday", "lundi", "Montag", "lunes", "月曜日").
-
Unless explicitly specified otherwise, all date comparisons are inclusive and evaluated using the local system date and time.
|
Function |
Description |
Example |
|---|---|---|
| IsDate(value) | Returns true if the value can be parsed as a date. |
|
| IsDateTime(value) | Returns true if the value is a valid date and time. |
|
| IsTime(value) | Returns true if the value is a valid time (either 12-hor or 24-hour format). |
|
| IsTime12Hour(value) | Returns true if the value is a valid 12-hour time format (including AM or PM). |
|
| IsTime24Hour(value) | Returns true if the value is a valid 24-hour time format (without AM or PM). |
|
| IsTimestamp(value) | Returns true if the value is a valid Unix timestamp (seconds or milliseconds). |
|
| IsISODate(value) | Returns true if the value is in ISO 8601 date or datetime format. |
|
| IsUSDate(value) | Returns true if the date is in US format (MM/DD/YYYY). |
|
| IsUKDate(value) | Returns true if the date is in UK format (DD/MM/YYYY). |
|
| IsEuropeanDate(value) | Returns true if the date is in European format (DD.MM.YYYY using a period seperator). |
|
| IsValidDateFormat(value, format) | Returns true if the value matches the specified date format. |
|
| IsToday(value) | Returns true if the value is today's date. |
|
| IsYesterday(value) | Returns true if the value is yesterday's date. |
|
| IsTomorrow(value) | Returns true if the value is tomorrow's date. |
|
| IsThisWeek(value) | Returns true if the date falls within the current week. |
|
| IsThisMonth(value) | Returns true if the date falls within the current calendar month. |
|
| IsThisYear(value) | Returns true if the date is in the current calendar year. |
|
| IsInPast(value) | Returns true if the date or time is in the before the current moment. |
|
| IsInFuture(value) | Returns true if the date or time is in the after the current moment. |
|
| IsOnOrAfterToday(value) | Returns true if the date is today or a future date. |
|
| IsOnOrAfterTomorrow(value) | Returns true if the date is tomorrow or later. |
|
| IsAfter(date, referenceDate) | Returns true if the first date is after the reference date. |
|
| IsBefore(date, referenceDate) | Returns true if the first date is before the reference date. |
|
| IsOnOrAfter(date, referenceDate) | Returns true if the first date is on or after the reference date. |
|
| IsOnOrBefore(date, referenceDate) | Returns true if the first date is on or before the reference date. |
|
| IsBetween(date, startDate, endDate) | Returns true if the given date is within the specified start and end date range (inclusive). |
|
| IsWithinLastDays(date, days) | Returns true if the date is within the specified number days in the past. |
|
| IsWithinNextDays(date, days) | Returns true if the date is within the specified number of days in the future. |
|
| IsOlderThanDays(date, days) | Returns true if the date is older than the specified number of days. |
|
| IsNewerThanDays(date, days) | Returns true if the date is newer than the specified number of days. |
|
| IsWeekday(value) | Returns true if the date is a weekday (Monday-Friday). |
|
| IsWeekend(value) | Returns true if the date is a weekend (Saturday-Sunday). |
|
| IsBusinessDay(value) | Returns true if the date is a business day (weekday and not a holiday). |
|
| IsHoliday(value) | Returns true if the date is a configured holiday. |
|
| IsDayOfWeek(value, day) | Returns true if the date falls on the specified day of week. |
|
| IsStartOfMonth(value) | Returns true if the date is the first day of the month. |
|
| IsEndOfMonth(value) | Returns true if the date is the last day of the month. |
|
| IsMonthOfYear(value, month) | Returns true if the date is in the specified month. |
|
| IsQuarter(value, quarter) | Returns true if the date is in the specified quarter of the year. |
|
| IsLeapYear(value) | Returns true if the year is a leap year. |
|
| IsAgeGreaterThan(birthDate, years) | Returns true if the age calculated from the birthdate is greater than the specified number of years. |
|
| IsAgeLessThan(birthDate, years) | Returns true if the age calculated from birthDate is less than the specified years. |
|
| IsAgeBetween(birthDate, minYears, maxYears) | Returns true if the age calculated from birthDate is between minimum and maximum number of years (inclusive). |
|
| IsNull(value) | Returns true if the value is null or undefined. |
|
| IsNotNull(value) | Returns true if the value is not null or undefined. |
|