Access Keys:
Skip navigation (Access Key - 0)
CurrentDatePlugin


Description

This macro allows to display the current time and/or date in a user-defined format.


Code

To display the current date in the standard format (f.e. 2008/3/17 16:17), you can use the following snippet:

{date}{date}

If you need a custom format, you can define it inside the macro body:

{date}%Y{date}

will display the current year:

You can even add your own text inside the date-macro-body (just remember - whenever you want to display a date-variable, prefix it with a percent-character and the macro will take care of the rest).

{date}Today is the %Dth{date}
will display:

Here's a short listing of all available variables that can be used inside the macro body:

  • %Y – Year (f.e. 2008)
  • %D – Day (f.e. 31)
  • %M – Month (f.e. 12)
  • %m – Minutes (f.e. 59)
  • %h – Hours (f.e. 23)
  • %L – a complete date string (depending on the localization settings of your browser, f.e. March 17, 2008)
(None)

Adaptavist Theme Builder (3.0.1-SNAPSHOT) Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 916 Build:#Nov 09, 2007 {3})
Free theme builder license