DateFormatter Op

DateFormatter

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

Full Name
  • Ops.Date.DateFormatter
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubJavascript Libraries
  • moment.js (Parse, validate, manipulate, and display dates and times in JavaScript)



Example Patch DigiClock

Sample patch for DateFormatter and DateCalc
Open In Editor

INPUT PORTS


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

OUTPUT PORTS


StringDate (String)

Patches using DateFormatter

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarGeertVanDamme - 2020-11-17 21:28
added lib: moment.jsuser avatarpandur - 2020-11-25 21:17