I have a date like this Monday, January 9, 2010
I now want to convert it to
1/9/2010 mm/dd/yyyy
I tried to do this
var startDat
You could do this pretty easily with my date-shortcode package:
const dateShortcode = require('date-shortcode') var startDate = 'Monday, January 9, 2010' dateShortcode.parse('{M/D/YYYY}', startDate) //=> '1/9/2010'