Date Methods Flashcards

1
Q

getDate()

A

Returns the day of the month (from 1-31)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

getDay()

A

Returns the day of the week (from 0-6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

getFullYear()

A

Returns the year

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

getHours()

A

Returns the hour (from 0-23)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

getMilliseconds()

A

Returns the milliseconds (from 0-999)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

getMinutes()

A

Returns the minutes (from 0-59)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

getMonth()

A

Returns the month (from 0-11)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

getSeconds()

A

Returns the seconds (from 0-59)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

getTime()

A

Returns the number of milliseconds since midnight Jan 1 1970, and a specified date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

getTimezoneOffset()

A

Returns the time difference between UTC time and local time, in minutes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

getUTCDate()

A

Returns the day of the month, according to universal time (from 1-31)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

getUTCDay()

A

Returns the day of the week, according to universal time (from 0-6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

getUTCFullYear()

A

Returns the year, according to universal time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

getUTCHours()

A

Returns the hour, according to universal time (from 0-23)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

getUTCMilliseconds()

A

Returns the milliseconds, according to universal time (from 0-999)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

getUTCMinutes()

A

Returns the minutes, according to universal time (from 0-59)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

getUTCMonth()

A

Returns the month, according to universal time (from 0-11)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

getUTCSeconds()

A

Returns the seconds, according to universal time (from 0-59)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

now()

A

Returns the number of milliseconds since midnight Jan 1, 1970

20
Q

parse()

A

Parses a date string and returns the number of milliseconds since January 1, 1970

21
Q

setDate()

A

Sets the day of the month of a date object

22
Q

setFullYear()

A

Sets the year of a date object

23
Q

setHours()

A

Sets the hour of a date object

24
Q

setMilliseconds()

A

Sets the milliseconds of a date object

25
setMinutes()
Set the minutes of a date object
26
setMonth()
Sets the month of a date object
27
setSeconds()
Sets the seconds of a date object
28
setTime()
Sets a date to a specified number of milliseconds after/before January 1, 1970
29
setUTCDate()
Sets the day of the month of a date object, according to universal time
30
setUTCFullYear()
Sets the year of a date object, according to universal time
31
setUTCHours()
Sets the hour of a date object, according to universal time
32
setUTCMilliseconds()
Sets the milliseconds of a date object, according to universal time
33
setUTCMinutes()
Set the minutes of a date object, according to universal time
34
setUTCMonth()
Sets the month of a date object, according to universal time
35
setUTCSeconds()
Set the seconds of a date object, according to universal time
36
toDateString()
Converts the date portion of a Date object into a readable string
37
toISOString()
Returns the date as a string, using the ISO standard
38
toJSON()
Returns the date as a string, formatted as a JSON date
39
toLocaleDateString()
Returns the date portion of a Date object as a string, using locale conventions
40
toLocaleTimeString()
Returns the time portion of a Date object as a string, using locale conventions
41
toLocaleString()
Converts a Date object to a string, using locale conventions
42
toString()
Converts a Date object to a string
43
toTimeString()
Converts the time portion of a Date object to a string
44
toUTCString()
Converts a Date object to a string, according to universal time
45
UTC()
Returns the number of milliseconds in a date since midnight of January 1, 1970, according to UTC time
46
valueOf()
Returns the primitive value of a Date object