Skip to content

Instantly share code, notes, and snippets.

@kenjosling kenjosling/bot3.js Secret
Created Jul 8, 2018

What would you like to do?
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
You can’t perform that action at this time.