Date.prototype.getLastDayOfMonth()

Description:

Get the first day of the month of the date.

Parameters:

  • N/A

Returned Value:

  • Date of the last day of month.

Sample:

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

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

Comments

No comments yet.