Time - Built-in Date & Time Function¶
Purpose¶
Time returns the current time.
Syntax¶
Time()
Arguments¶
None
Returns¶
Variant with time value
See also¶
- Date
- DateAdd
- DateDiff
- DatePart
- DateSerial
- DateTimeSerial
- DateValue
- Day
- Hour
- InAgedToDays
- InLast4WeeksToSunday
- InLast7Days
- InLastFullMonth
- InLastFullWeek
- InLastYearMTD
- InLastYearYTD
- InLeapYear
- Minute
- Month
- MonthName
- Now
- Second
- TimeValue
- WeekAgo
- Weekday
- WeekdayName
- Year
Example¶
Dim tiNow
Let tiNow = Time()
Return tiNow // returns the current time
Notes¶
- Time returns a datetime variable with the date portion set to December 30, 1899.
- To print only the time, either format the field (via field properties, choosing NONE for the date portion) or use the FormatTime function.