DateTime module
The DateTime module
IsValidDate(candidate)
return DateTime.IsValidDate("hello");
// Return false; "hello" is not a valid date.CreateDate(year, month, dayOfMonth)
return DateTime.CreateDate(2018, 03, 23);
// Returns a date value representing the 23rd of March 2018CreateDateAndTime(year, month, dayOfMonth, hour, minute, second)
return DateTime.CreateDateAndTime(2018, 03, 23, 11, 03, 01);
// Returns a date value representing the 23rd of Match, three minutes
// and one second past eleven.GetYear(dateValue)
GetMonth(dateValue)
GetDayOfMonth(dateValue)
GetHour(dateValue)
GetMinute(dateValue)
GetSecond(dateValue)
DifferenceInDays(fromDate, toDate)
DifferenceInSeconds(fromDate, toDate)
SetTime(dateValue, hours, minutes, seconds)
AddYears(dateValue, years)
AddMonths(dateValue, months)
AddDays(dateValue, days)
AddHours(dateValue, hours)
AddMinutes(dateValue, minutes)
AddSeconds(dateValue, seconds)
CreateHHMMText(dateValue)
GetHourFromHHMMText(text)
GetMinuteFromHHMMText(text)
Last updated
Was this helpful?