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:
sugarjs can parse natural language 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
Post a Comment