Skip to content

Instantly share code, notes, and snippets.

@stevenbristol
Created February 18, 2009 22:07
Show Gist options
  • Save stevenbristol/66577 to your computer and use it in GitHub Desktop.
Save stevenbristol/66577 to your computer and use it in GitHub Desktop.
>> (Date.today - 1).to_s
=> "2009-02-17"
>> (Date.today-1).to_s
=> "2009-02-17"
>> (Date.today -1).to_s
=> "2009-02-18"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment