With ruby I\'m trying to get format a date as such: 2009-10-01
Where I take the current date (2009-10-26) and then change the day to \"01\".
I know of ways to do
This works...
Not terribly clever :/
require 'date' Date.parse(Date.parse("2009-10-26").to_s[0,8] << "01")