Jesús Ayala Jesús Ayala - 5 months ago 37
Javascript Question

how to set day number to a date variable in mongo

I have this variable in mongo

var f_date = new Date();

and I want to modify f_date's day to 1st day, I was thinking of something like


how to do that???


The method for that is setDate: