Consistent display of dates in Rails
In order to consistently display dates in a Rails application the strftime format can be set globally.
This makes the default .to_s
of a DateTime to use strftime("%d/%m/%Y")
.
In order to consistently display dates in a Rails application the strftime format can be set globally.
This makes the default .to_s
of a DateTime to use strftime("%d/%m/%Y")
.