beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
DateFormatter
Ops.Date.DateFormatter
Namespace: Ops.Date
String representation of a date

summary (oneliner)

This Op takes a Date or Timestamp value and creates a String representation for that date.
The formatting is done with moment.js.

https://momentjs.com/docs/#/displaying/

e.g.:

  • ddd YYYY-MM-DD HH:mm:ss
  • YYYY-MM-DD
  • HH:mm:ss

doc

issues

youtube id

collections

related ops

Inputs

Timestamp (Number)

Date (Object)

Format (String)

Outputs

StringDate (String)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
DigiClock:

Sample patch for DateFormatter and DateCalc



Credits


  • Uses library: moment.js (Parse, validate, manipulate, and display dates and times in JavaScript)
  • Op author: GeertVanDamme

Changelog


created op
2020-11-17 - GeertVanDamme

added lib: moment.js
2020-11-25 - pandur

Examples using DateFormatter

Public Patches using DateFormatter