-
-
Save kenjosling/f2e16443b57e2b404c0a133e7415affc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chrono = require('chrono-node'); | |
var dateFormat = require('dateformat'); | |
var date = chrono.parseDate('after july this year').toDateString(); | |
console.log(date); //'Sun Jul 01 2018' | |
console.log(dateFormat(new Date(date), "isoUtcDateTime")); //'2018-06-30T14:00:00Z' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment