need to require date for ruby 1.9.2