beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

DateFormatter Op

Ops.Date.DateFormatter


DateFormatter
Namespace: Ops.Date

Op author: GeertVanDamme

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

String representation of a date


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


Inputs

Timestamp (Number)
Date (Object)
Format (String)

Outputs

StringDate (String)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

DigiClock

Sample patch for DateFormatter and DateCalc

Open Example In Editor

Patches using DateFormatter

Changelog


created op
2020-11-17 - GeertVanDamme
added lib: moment.js
2020-11-25 - pandur