3

I'm working on a web project that uses Django, jQuery and 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 parse strings such as "tomorrow at noon" or "in 5 minuts" to epoch time. The drawback is that its a python library, thus requiring me to use AJAX to send a request to convert the string for me to the server. Is there a JavaScript library that will allow for a similar functionality that I can use to parse the string on the client-side?

Thanks

4

2 回答 2

2

试试这个:http ://www.datejs.com/

于 2010-12-18T13:51:27.180 回答
1

结帐 moment.js:http ://momentjs.com/docs/

于 2012-03-14T00:38:19.907 回答