0% found this document useful (0 votes)
26 views5 pages

Date

Uploaded by

Abdu Seid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Date

Uploaded by

Abdu Seid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Objects

Date()
JAVASCRIPT

@code.singh
Objects

By default, JavaScript will use the


browser's time zone and display a date as
a full text string:
Sat Jun 18 2022 17:24:04 GMT+0530 (India
Standard Time)

Creating Date Objects:


const d = new Date();
new Date(year, month, day, hours, minutes, seconds,
milliseconds)
new Date(date string)

@code.singh
Formats

"2015-03-25" (The
ISO Date International
Standard)

Short Date "03/25/2015"

"Mar 25 2015" or
Long Date
"25 Mar 2015"

@code.singh
Methods

getFullYear()
getMonth()
getDate()
getHours()
getMinutes()
getSeconds()
getMilliseconds()
getTime()
getDay()
@code.singh
We daily add this kind of of posts
so,if you wanna to see more content
relate to code ,then follow
@code.singh for more development
code

SAHIL SINGH

@code.singh

You might also like