I'm using momentjs in my app. But I don't understand it very well.
I need to get a date in milliseconds, but I need only day, month and year. Others should be set to 0
(Hours, minutes, seconds and milliseconds)
I'm trying with some like this:
var a = moment();
a = moment(a, "YYYY MM DD").valueOf();
But it returns milliseconds with extra info I don't want.
How can I get only milliseconds from days, months, and years?