Access Keys:
Skip to content (Access Key - 0)
CurrentDatePlugin


Overview

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

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:

Unknown macro: {date}

%Y

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:

Unknown macro: {date}

Today is the %Dth

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)

Adaptavist Theme Builder (3.0.1) Bereitgestellt von Atlassian Confluence, dem Enterprise Wiki (Version: 2.6.1 Build:#916 Nov 09, 2007).
Free theme builder license