Date String Inputs - TotallyInformation/node-red-contrib-moment GitHub Wiki

When taking a string input, the string needs to be in a recognised date/time format. If it isn't, the output will default to NOW and a warning is raised.

Valid input strings are anything recognised by JavaScript's Date parser. Plus anything added by Moment-ParseFormat.

The input string parser assumes UK date format (DD/MM/YY) if the date separator is / and the input is ambiguous (e.g. 3/5/5) - unless either the locale is en_US or the input timezone is in America (e.g. America/Los_Angeles). This is different to the Moment-ParseFormat default.

Known parsable strings

Please raise an issue if you discover more working formats that you would like to share with others.

  • 'Thursday, February 6th, 2014 9:20pm'
  • '3/5/5' (when only date is supplied, time is set to 00:00:00)
  • ISO8601