Skip to content

Instantly share code, notes, and snippets.

@Veejay Veejay/date.rb
Created Oct 30, 2012

Embed
What would you like to do?
Funky Date handling
irb(main):022:0> Date.parse("2012/12/31").cweek
=> 1
irb(main):023:0> Date.parse("2012/12/31").year
=> 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.