Date/time conversion: Using the fuzzy date/time parser

Using the fuzzy date/time parser

The minimal set of steps required is:

  1. Create a new shared module called “dateparse” and copy paste in the source code to the module from our code repository.
  2. Add the code require(‘dateparse’) at the top of the main module.
  3. Then you use can access the parser using the “D” method of any node object like this:

The D method is a function existing in the node table. See methods in Lua.

For the most part this will just work unless you come across date/time formats that the fuzzy date/time parser has not be configured to understand.