javascript - Converting humanized strings to dates moment.js -


moment.js humanized , calendar dates, example:

moment().calendar() "today @ 10:17 am" 

which gets current date object , converts calendar date, and

is there way in reverse? if give "today @ 10:17 am", returns date object todays date , 10:17 time?

date.js can parse human readable dates:

http://www.datejs.com/

sugarjs can parse natural language dates:

http://sugarjs.com/dates

it can deal stuff like:

one day before yesterday 2 days after monday 2 weeks monday second ago 25 years last wednesday 

also, see related question: is there natural language parser date/times in javascript?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -