Normally if I wanted to get the date I could just do something like
var d = new Date(); console.log(d);
The problem with doing that, is when I
By using moment.js library, you can do it:
var datetime = new Date("2015-09-17 15:00:00"); datetime = moment(datetime).format("YYYY-MM-DD");