Node-RED node for date/time formatting using Moment.js, with timezone, DST, and locale support. Current stable version is 5.0.0, requiring Node.js >=14.14 and Node-RED >=1.0. Provides two nodes: 'moment' for date/time formatting and 'humanizer' for duration descriptions. Locale-aware output strings. Note that moment.js is now built into JSONata, making this package less necessary; no further enhancements expected. Release cadence is irregular, with major versions introducing breaking dependency updates.
npm install node-red-contrib-momentVerified import paths — ran on the pinned version, not inferred.
Installation and basic usage of the moment node in Node-RED: inject timestamp, configure format, output.
Upgrade Node.js to >=10 and Node-RED to >=1.0 before installing v4+.
Consider using Node-RED's built-in JSONata moment functions in Change or Function nodes instead.
Always verify month values: January is 0, December is 11.
Ensure input is a ISO 8601 string, Unix timestamp (milliseconds), or Date object.
Run 'npm install node-red-contrib-moment' from your Node-RED userDir (typically ~/.node-red).
Do not require the package; use the node in your flows.
Ensure Node.js version matches the one used during npm install. Try reinstalling: rm -rf node_modules && npm install.