[Rails] mysql dates
Dorian Mcfarland
loaf at isness.org
Mon Jan 23 21:27:45 GMT 2006
does anyone know of a way to make the date_helper deal with mysql dates with 00 values in them?
I have lots of dates that are like the following:
2005-04-00
2005-00-00
and I need to set null values in a date_select for elements that are 00. These are valid dates in mysql.
In the absence of an immediate solution to the above, I've been trying to find out how InstanceTag.new works so I can overload the to_date_select_tag() method. Has anyone ever done this, or have any pointers as to how I might approach the problem this way?
I'm in a bit of a bind because whenever I use ':include_blank => true' in a date_select form, the result is always applied to the date field in the db as eg. Jan 01, which means that as far as I can see blank values aren't possible. Am I missing something?
thanks
dorian
--
I do things for love or money
--
+44 (0)7941 219 501
--
aim:oulalipo | yahoo:tachekent
More information about the Rails
mailing list