Skip to content

Instantly share code, notes, and snippets.

@ninjaPixel
Created August 12, 2014 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninjaPixel/9f754cefb38ee4abaa94 to your computer and use it in GitHub Desktop.
Save ninjaPixel/9f754cefb38ee4abaa94 to your computer and use it in GitHub Desktop.
moment test
{"description":"moment test","endpoint":"","display":"svg","public":true,"require":[{"name":"d3.js","url":"http://d3js.org/d3.v3.min.js"},{"name":"moment.js","url":"//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"thumbnail":"http://i.imgur.com/AlfUtwm.png"}
var date1 = moment('21 aug 2014');
var date2 = moment('Thursday, 21 August 2014');
console.log('date1', date1.date(), 'date2', date2.date());
console.log('month1', date1.month(), 'month2', date2.month());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment