How can I convert Javascript Date Objects to a date string in the following format:
Date Object
2000-01-12 23:00:00.000Z
Resulting String
"01/12/2000 23"
How can I convert Javascript Date Objects to a date string in the following format:
Date Object
2000-01-12 23:00:00.000Z
Resulting String
"01/12/2000 23"
date.getDate() + '/' +
(date.getMonth() +1) + '/' +
date.getFullYear() + ' ' +
(date.getHours() + 1)
Why the +1
you ask? Because javascript. :(