DEV Community

Discussion on: FullStack - How to create a working blogging website with pure HTML, CSS and JS in 2021.

 
ats1999 profile image
Rahul kumar • Edited

getTime() is same as getDate(), getTime() will return unix epoch time in milli seconds.

You can also see date from getTime ().

Advantage of getTime()":

  • sort by date because getTime () is just a number

  • sort by date range

  • smaller image name

  • etc...

Thread Thread
 
themodernweb profile image
Modern Web

Oh! My bad😅😅, I didn't knew about it. Thanks for telling 😄😄

Some comments have been hidden by the post's author - find out more