Date - Built-in Date & Time Function¶
Purpose¶
Date returns the current date.
Syntax¶
Date()
Arguments¶
None
Returns¶
Datetime
See also¶
- DateAdd
- DateDiff
- DatePart
- DateValue
- DateSerial
- Day
- Hour
- InAgedToDays
- InLast4WeeksToSunday
- InLast7Days
- InLastFullMonth
- InLastFullWeek
- InLastYearMTD
- InLastYearYTD
- InLeapYear
- Minute
- Month
- MonthName
- Now
- Second
- Time
- TimeSerial
- TimeValue
- WeekAgo
- Weekday
- WeekdayName
- Year
Example¶
Dim dtSys
Let dtSys = date()
Return dtSys // returns current date
Notes¶
- Date returns a datetime value with the time portion set to midnight.