Date.setUTCDate

setUTCDate – Set the day of the month, according to universal time (1–31).

Description

Date.setUTCDate(integer day)

Parameters

Name Description Type Default Optional
day integer No

Return values

Integer. The new timestamp.

Examples

Example #1 – setUTCDate example
var date = new Date(Date.UTC(2015, 9, 21, 16, 29, 00)); console.log(date.getTime()); // 1445444940000 console.log(date.setUTCDate(1)); // 1443716940000

External references