Let's say I have momentjs object like the following:
var date = moment(new Date(2014,2,17,9,60));
How could I get clone and get new momentjs object without time?
With moment version 1.7 and above, just use startOf method.
var date2 = date1.clone().startOf('day');
See http://momentjs.com/docs/#/manipulating/start-of/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With