Tinderbox v10 Icon

Date.format(formatStr)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Formatting  [other Formatting operators]

 Baseline

 As at baseline


Date.format(formatStr)

Returns Date as a String, formatted as per the quoted date format string formatStr.

This supplements the existing format() function.

For example:

$MyString = $MyDate.format("L") 

gets the note's creation date and formats it as a "long local date" such as "Sunday, 23 March, 2007" and sets that as the value of $MyString.

If data is a date, the format string is the same as the format used by Tinderbox's date format codes.