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
Q

setMinutes()

A

Set the minutes of a date object

26
Q

setMonth()

A

Sets the month of a date object

27
Q

setSeconds()

A

Sets the seconds of a date object

28
Q

setTime()

A

Sets a date to a specified number of milliseconds after/before January 1, 1970

29
Q

setUTCDate()

A

Sets the day of the month of a date object, according to universal time

30
Q

setUTCFullYear()

A

Sets the year of a date object, according to universal time

31
Q

setUTCHours()

A

Sets the hour of a date object, according to universal time

32
Q

setUTCMilliseconds()

A

Sets the milliseconds of a date object, according to universal time

33
Q

setUTCMinutes()

A

Set the minutes of a date object, according to universal time

34
Q

setUTCMonth()

A

Sets the month of a date object, according to universal time

35
Q

setUTCSeconds()

A

Set the seconds of a date object, according to universal time

36
Q

toDateString()

A

Converts the date portion of a Date object into a readable string

37
Q

toISOString()

A

Returns the date as a string, using the ISO standard

38
Q

toJSON()

A

Returns the date as a string, formatted as a JSON date

39
Q

toLocaleDateString()

A

Returns the date portion of a Date object as a string, using locale conventions

40
Q

toLocaleTimeString()

A

Returns the time portion of a Date object as a string, using locale conventions

41
Q

toLocaleString()

A

Converts a Date object to a string, using locale conventions

42
Q

toString()

A

Converts a Date object to a string

43
Q

toTimeString()

A

Converts the time portion of a Date object to a string

44
Q

toUTCString()

A

Converts a Date object to a string, according to universal time

45
Q

UTC()

A

Returns the number of milliseconds in a date since midnight of January 1, 1970, according to UTC time

46
Q

valueOf()

A

Returns the primitive value of a Date object