SyntaxFix
Write A Post
Hire A Developer
Questions
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'