Enter a date in the format you need

mytime.strftime("")

ordinalize method available with ActiveSupport