DATETIME{"format"} -- date and time formatting and calculation
- Calculate date and time in the past or future, and format date and time. This variable is handled by the DateTimePlugin.
- Syntax:
%DATETIME{"format"}%
- Examples:
-
%DATETIME{"$wday"}%
returns the current weekday
-
%DATETIME{"$year-$mo-$day" incdays="-7"}%
returns the date of a week ago
-
%DATETIME{"$hour:$min" timezone="America/New_York"}%
returns the current time in the time zone of New York, US
- Category: DateAndTimeVariables, TablesAndSpreadsheetsVariables
- Related: CALCULATE, GMTIME, DateTimePlugin
This topic: TWiki
> WebHome >
TWikiVariables > VarDATETIME
Topic revision: r3 - 2015-07-14 - TWikiAdminUser