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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -