eb/JavaScript/Reference/Global_Objects/Date/getUTCFullYear) |  [ ` setUTCFullYear() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear)  
Month  |  [ ` getMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth) |  [ ` setMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth) |  [ ` getUTCMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth) |  [ ` setUTCMonth() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth)  
Date (of month)  |  [ ` getDate() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate) |  [ ` setDate() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate) |  [ ` getUTCDate() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate) |  [ ` setUTCDate() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate)  
Hours  |  [ ` getHours() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours) |  [ ` setHours() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours) |  [ ` getUTCHours() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours) |  [ ` setUTCHours() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours)  
Minutes  |  [ ` getMinutes() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes) |  [ ` setMinutes() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes) |  [ ` getUTCMinutes() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes) |  [ ` setUTCMinutes() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes)  
Seconds  |  [ ` getSeconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds) |  [ ` setSeconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds) |  [ ` getUTCSeconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds) |  [ ` setUTCSeconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCSeconds)  
Milliseconds  |  [ ` getMilliseconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds) |  [ ` setMilliseconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds) |  [ ` getUTCMilliseconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds) |  [ ` setUTCMilliseconds() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds)  
Day (of week)  |  [ ` getDay() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay) |  N/A  |  [ ` getUTCDay() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay) |  N/A   
  
The [ ` Date() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date) constructor can be
called with two or more arguments, in which case they are interpreted as the
year, month, day, hour, minute, second, and millisecond, respectively, in
local time. [ ` Date.UTC() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC) works similarly, but
it interprets the components as UTC time and also accepts a single argument
representing the year.

**Note:** Some methods, including the ` Date() ` constructor, ` Date.UTC() ` ,
and the deprecated [ ` getYear() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Date/getYear) / [ ` setYear()
` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear) methods,
interpret a two-digit year as a year in the 1900s. For example, ` new Date(99,
5, 24) ` is interpreted as June 24, 1999, not June 24, 99. See  Interpretation
of two-digit years  for more information.

When a segment overflows or underflows its expected range, it usually "carries
over to" or "borrows from" the higher segment. For example, if the month is
set to 12 (months are zero-based, so December is 11), it become the January of
the next year. If the day of month is set to 0, it becomes the last day of the
pr