Natural Language Processing for Dates
What is this?
This is a web app to test different JavaScript-based libraries for converting human-readable dates into machine-readable dates.
Currently it compares –
Want to suggest more? Open an Issue on the GitHub repo.
How to use it?
Input
Enter a text with date here –
Or pick one of these –
Output
Chrono | Thu May 23 2024 14:49:37 GMT+0530 (India Standard Time) |
Compromise | start: 2024-05-23T00:00:00.000+05:30 end: 2024-05-23T23:59:59.999+05:30 timezone: Asia/Calcutta duration: { years: 0, months: 0, days: 1, hours: 0, minutes: 0 } |
Verdict
My personal opinion, of course.
- Chrono is simpler and parses only the starting date-time.
- Compromise can parse a complete date range and possibly work with more complex input. Although it struggles with some inputs unexpectedly. For e.g.,
october two years from now
works butoctober next year
does not.