Jesús Ayala Jesús Ayala - 1 year ago 70
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???

Answer Source

The method for that is setDate:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download