Date and time functions The following date and time kernel functions are available: AddDays AddHours AddMilliseconds AddMinutes AddMonths AddSeconds AddWeeks AddYears date DateString datetime DateTimeString DayOfTheMonth DayOfTheWeek DayOfTheYear DaysBetween DaysInMonth DaysInYear FormatDateTime HoursBetween IsLeapYear IsValidDate IsValidDatetime IsValidTime MillisecondOfTheDay MillisecondOfTheMonth MillisecondOfTheWeek MillisecondOfTheYear MillisecondsBetween MinutesBetween MonthsBetween now SecondOfTheDay SecondOfTheMonth SecondOfTheWeek SecondOfTheYear SecondsBetween time timestamp TimeString today tomorrow TruncToDay TruncToHour TruncToMillisecond TruncToMinute TruncToMonth TruncToSecond TruncToYear WeekOfTheYear WeeksBetween YearsBetween yesterday