Wednesday, 10 May 2017

Can this be done in Javascript?

I have a task where in from a huge document I have to extract dates and use them to calculate total time in years.

Example of date format may be

APR 2015
APR'2015
APRIL 2015
APR'15
April 2015
April 15

plus the usual formats mm/yyyy, mm-yy etc

I came accross this solution however I want to achive it using javascript/node, Can anyone help me make the connection.

Parsing different date formats in a string in Java



via Coding noob

No comments:

Post a Comment