Skip to content

Instantly share code, notes, and snippets.

@hchoroomi
Created April 16, 2009 17:01
Show Gist options
  • Save hchoroomi/96525 to your computer and use it in GitHub Desktop.
Save hchoroomi/96525 to your computer and use it in GitHub Desktop.
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
:date => '%m/%d/%Y',
:date_time12 => '%m/%d/%Y %I:%M%p',
:date_time24 => '%m/%d/%Y %H:%M',
:day_date => '%a %m/%d/%Y',
:day_date_time12 => '%a %m/%d/%Y | %I:%M%p',
:day_date_time24 => '%a %m/%d/%Y | %H:%M'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment