Skip to content

Instantly share code, notes, and snippets.

@ricca509
Created February 20, 2017 22:53
Show Gist options
  • Save ricca509/0ddaee247fc9e638e61328cf7f8378e9 to your computer and use it in GitHub Desktop.
Save ricca509/0ddaee247fc9e638e61328cf7f8378e9 to your computer and use it in GitHub Desktop.
snapshot-function
export function parseDate (date) {
return {
day: date.getDate(),
month: date.getMonth() + 1,
year: date.getFullYear()
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment