DateFormatter Op

DateFormatter

Op uses deprecated op libraries!


Migrate these to op dependencies:


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 - visible for everyone
License
  • MIT
AuthorCreated
  • Nov 17, 2020 at 21:28
githubMaintained by TeamJavascript 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)

Changelog

Patches using DateFormatter

  • Examples
  • Public
  • My Patches