Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
116
rated 0 times [  118] [ 2]  / answers: 1 / hits: 16498  / 15 Years ago, tue, june 16, 2009, 12:00:00

Is there a natural language parser for date/times in javascript?


More From » datetime

 Answers
23

SugarJS supports some natural language parsing of dates and times.



You can jump to the live example here: http://sugarjs.com/dates



For example, it supports the following inputs:




  • the day after tomorrow

  • 2 weeks from monday

  • May 25th of next year



You can then covert the result into different date formats or use the API to further manipulate the date.


[#99300] Friday, June 12, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
harleyaleenag

Total Points: 678
Total Questions: 121
Total Answers: 105

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
harleyaleenag questions
Thu, May 5, 22, 00:00, 2 Years ago
Wed, Aug 19, 20, 00:00, 4 Years ago
;