-
Date.getTime() Get the time in milliseconds elapsed since .
-
Date.getFullYear() Get the four-digit year ().
-
Date.getMonth() Get the Date object's month as a zero-indexed number ().
-
Date.getDate() Get the Date object's day as a number ().
-
Date.getDay() Get the Date object's weekday as a number ().
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] -
Date.getHours() Get the Date object's hour ().
-
Date.getMinutes() Get the Date object's minutes ()
-
Date.getSeconds() Get the Date object's seconds ().
-
Date.getMilliseconds() Get the Date object's milliseconds ().
Created
March 3, 2020 00:50
-
-
Save koji/6bd9a5804487af68a7ac2b1e48734905 to your computer and use it in GitHub Desktop.
javascript Date's get methods
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment