Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.34. Print        5.3.36. Subscription>

Print / Download:
Available languages: english Last update: 2005-08-04 13:22:34

5.3.35. Date

Purpose:

Prints the current date according to format or only a date attribute.

Syntax:

Date <date_attribute>|<date_format>

where

<date_attribute>=

year
|mon_nr
|mday
|yday
|wday_nr
|hour
|min
|sec
|mon_name
|wday_name

The attributes have the following meanings:

  • year: year as number

  • mon_nr: month as number

  • mday: day of the month (number)

  • yday: day of the year (number)

  • wday_nr: day of the week (number)

  • hour: hour (0-23)

  • min: minute

  • sec: second

  • mon_name: name of the month (in the language set to the data context)

  • wday_name: name of the day of the week (in language set to the data context)

<date_format> may contain any printable character except ", tab and >. If the date format contains separators (space, end of line) it must be enclosed in "" characters. The following groups of characters have special meaning:

  • %M - month name

  • %W - weekday name

  • %Y - year (4 digits)

  • %y - year (2 digits)

  • %m - month (01..12)

  • %c - month (1..12)

  • %d - day of the month (00..31)

  • %e - day of the month (0..31)

  • %j - day of the year (001..366)

  • %D - day of the month with English suffix (1st, 2nd, 3rd etc.)

Constraints:

None.


add a note add a note User Contributed Notes
5.3.35. Date
china media project  
Wednesday 07th of December 2005 06:04:00 AM
To print the american date format from the article field 'published' use the following line:

<!** print article published "%Y-%c-%e">

which prints for example: 2005-7-23

to use leading zeros, use the following format:

<!** print article published "%Y-%m-%d">

this prints for example: 2005-07-23

<5.3.34. Print 5.3.36. Subscription>

  Last update: 2005-08-04 13:22:34
Website powered by Docmint Last update: 2005-08-04 13:22:34
Total page time: 1.07621884346