Date.prototype.getFirstDayOfMonth()

Description:

Get the first day of the month of the date.

Parameters:

  • N/A

Returned Value:

  • Date of the first day of month.

Sample:

var date = new Date(2012, 4, 2, 18, 01, 03);
document.write(date.getFirstDayOfMonth().format("yyyy-MM-dd HH:mm:ss"));
//Result: "2012-05-01 18:01:03"

Last edited Aug 20, 2012 at 7:17 AM by rynnwang, version 1

Comments

No comments yet.