If I use form.text_field :date for the form, can I format the :date
somehow, say change the time display format?
Tks
If I use form.text_field :date for the form, can I format the :date
somehow, say change the time display format?
Tks
Dmitry H. wrote:
If I use form.text_field :date for the form, can I format the :date
somehow, say change the time display format?Tks
Hi Hazin,
def nice_date(date)
date.strftime("%A %d %B %Y - %H%l:%M %p")
end
…
…
Maybe this method might help you.
Regards,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs