Skip to main content

Date

Overview

Formats a given timestamp, or the current time (for Code-Blocks are only available within the browser-values), based on various additional hints, such that its appearance becomes aligned with the desired scheme.

<date

  valuenumber(null)

  ↪ Timestamp as UNIX milliseconds

  ↪ (since January 1st, 1970 at UTC)

  formatstring(null)

  ↪ Pattern to format the date with

  ↪ See: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html

  zonestring(null)

  ↪ Zone-Id to offset the timestamp with

  ↪ See: https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html

  localestring(null)

  ↪ Dictates names, number-styles, etc.

  ↪ E.g. de_AT, en_GB, etc.

/>

Examples

Current Time

When not supplying a value, or the value evaluates to null, the current time will automatically be used.

Code-Blocks are only available within the browser

Custom Stamp

To render a supplied value, simply provide it as a UNIX timestamp; this time, we're also going to employ the default format - but with a custom zone.

Code-Blocks are only available within the browser