intl-datetime-parser
Parse the date strings, formatted by the Intl.DateTimeFormat (ECMAScript Internationalization API)
Installation
npm i intl-datetime-parser
Usage
var intlParser = require('intl-datetime-parser');
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
var dateString = 'Donnerstag, 20. Dezember 2012';
console.log(new IntlDateTimeParser('de-DE', options).parse(dateString).toISOString());
// → "2012-12-20T00:00:00.000Z"
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
This project is licensed under MIT. See the LICENSE file.