DateFormatter Op

DateFormatter

String representation of a date


<p>This Op takes a Date or Timestamp value and creates a String representation for that date. The formatting is done with moment.js.</p> <p><a href="https://momentjs.com/docs/#/displaying/">https://momentjs.com/docs/#/displaying/</a></p> <p>e.g.: </p> <ul> <li>ddd YYYY-MM-DD HH:mm:ss</li> <li>YYYY-MM-DD</li> <li>HH:mm:ss</li> </ul>


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