Difference: VarDATETIME (1 vs. 3)

Revision 32015-07-14 - TWikiAdminUser

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

DATETIME{"format"} -- date and time formatting and calculation

Revision 22015-07-14 - TWikiAdminUser

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

DATETIME{"format"} -- date and time formatting and calculation

Revision 12015-07-14 - TWikiAdminUser

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

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 site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding ZIVwiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarDATETIME.