Object - Methods

MethodDescription
Date.now()Get the time. ECMAScript 5.
getDateGet the day as a number (1-31)
getDayGet the weekday as a number (0-6)
getFullYearGet the year as a four digit number (yyyy)
getHoursGet the hour (0-23)
getMillisecondsGet the milliseconds since Jan, 1 1970) (0-999)
getMinutesGet the minute (0-59)
getMonthGet the month as a number (0-11)
getSecondsGet the second (0-59)
getTimeGet the time (milliseconds since January 1, 1970)
getUTCDateSame as getDate(), but returns the UTC date
getUTCDaySame as getDay(), but returns the UTC day
getUTCFullYearSame as getFullYear(), but returns the UTC year
getUTCHoursSame as getHours(), but returns the UTC hour
getUTCMillisecondsSame as getMilliseconds(), but returns the UTC milliseconds
getUTCMinutesSame as getMinutes(), but returns the UTC minutes
getUTCMonthSame as getMonth(), but returns the UTC month
getUTCSecondsSame as getSeconds(), but returns the UTC seconds
Number 
parseFloat 
parseInt 
setDateSet the day as a number (1-31)
setFullYearSet the year (optionally month and day)
setHoursSet the hour (0-23)
setMillisecondsSet the milliseconds (0-999)
setMinutesSet the minutes (0-59)
setMonthsSet the months (0-11)
setSecondsSet the seconds (0-59)
setTimeSet the time (milliseconds since 1 Jan 1970)
toExponential 
toFixed 
toPrecison 
toString 
toUTCString 
valueOf 

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext