use RubyDateFormat instead