Rails_admin, Date add more accepting formats

In rails_admin, if you have field with Date value, it adds datepicker that will help to select date:

date picking

When I select from datepicker it shows me date in this format: September 09, 2015

A lot of users has their bithday year which are in 80’s and 90’s. It will consume a lot of time to choose proper date.

This makes user to write date. Mostly they write in these formats: mm/dd/yyyy, dd/mm/yyyy, mm.dd.yyyy and dd.mm.yyyy. When I try to enter date in this format, it throws me an argument out of range exception.

How to make rails_admin accept these multiple formats?

Source: ruby

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.