how it's possible display weekday next date ?
column :start_date #displaying example 29 jan. 2016
how echo friday, 29 jan. 2016?
you can use strftime
method.
column "start date:" |post| post.start_date.strftime("%a, %d %b. %y") end
how it's possible display weekday next date ?
column :start_date #displaying example 29 jan. 2016
how echo friday, 29 jan. 2016?
you can use strftime
method.
column "start date:" |post| post.start_date.strftime("%a, %d %b. %y") end
Comments
Post a Comment