--- title: Webgen::Tag::Date used_options: - tag.date.format --- ## Description The date tag is used to display the current time in a specific format (the format of Ruby's inbuilt method [Time#strftime][1]). Have a look a the examples below to see some possible outputs. [1]: http://www.ruby-doc.org/core/classes/Time.html ## Examples
Usage | Output |
---|---|
\{date:} | {date:} |
\{date: {format: '%A, %Y-%m-%d'}} | {date: {format: '%A, %Y-%m-%d'}} |
\{date: {format: %x - %X}} | {date: {format: %x - %X}} |