Skip to content

Instantly share code, notes, and snippets.

@awkale
Created October 1, 2014 16:03
Show Gist options
  • Save awkale/88d36765da517918ac4d to your computer and use it in GitHub Desktop.
Save awkale/88d36765da517918ac4d to your computer and use it in GitHub Desktop.
javascript dates
getDate() Returns the day of the month (from 1-31)
getDay() Returns the day of the week (from 0-6)
getFullYear() Returns the year (four digits)
getHours() Returns the hour (from 0-23)
getMilliseconds() Returns the milliseconds (from 0-999)
getMinutes() Returns the minutes (from 0-59)
getMonth() Returns the month (from 0-11)
getSeconds() Returns the seconds (from 0-59)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment