LaCava Research Wiki

Initiated September 2017

Date Fields

24th January 2015 at 4:45pm

Certain fields of a tiddler are used to store dates and times.

The two standard date fields are created and modified.

Values of date fields are 17-character strings:

  • 4 digits for the year
  • 2 digits for the month
  • 2 digits for the day
  • 2 digits for the hour
  • 2 digits for the minute
  • 2 digits for the second
  • 3 digits for the millisecond

To avoid problems arising from differences of time zone, TiddlyWiki always uses UTC.

As an example, the created field of this tiddler has the value 20150117190213631.

Dates can be converted to other formats for display:

<$view field="created" format="date" template="DDD DDth MMM YYYY"/>

That renders as:

Saturday 17th January 2015