Using the fuzzy date/time parser
The minimal set of steps required is:
- Create a new shared module called “dateparse” and copy paste in the source code to the module from our code repository.
- Add the code require(‘dateparse’) at the top of the main module.
- 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.
Continue: Ambiguous Date/Time Formats