I’ve used the helper that is found here:
I had used the Dynarch calendar previously in some php applications. I
had to do a little tweaking to get it how I wanted, however. (Having a
displayed input with a user-friendly format and a hidden field for the
mysql format, making it read-only and having a delete button, etc.)
When all was said and done the code to use it was just like any other
<%= popup_calendar ‘equipment’, ‘purchase_date’ %>
It creates a read-only input with a calendar icon and delete icon.
Behind the scenes is the actual hidden field that stores a mysql date.
Also, the Dynarch calendar is open source, nice looking, and easy to
use. (I did change some CSS for my use.) Here is the site:
Like I said, I did do some modifications, but it seems to work well for
what I am doing.