Parse human-readable dates with JS?

I am working on a web project that uses Django, jQuery and the Google App Engine. I need an option to parse raw, human-readable date texts into JavaScript Date objects. I found this library - http://code.google.com/p/parsedatetime/ , which will allow me to analyze strings, such as "tomorrow at noon" or "5 minutes" before the era. The disadvantage is that it is a library python, so I have to use AJAX to send a string conversion request for me to the server. Is there a JavaScript library that allows you to use similar functionality that I can use to parse strings on the client side?

thank

+3
source share
2 answers

Try the following: http://www.datejs.com/

+2
source

Checkout moment.js: http://momentjs.com/docs/

+1
source

Source: https://habr.com/ru/post/1781017/


All Articles