How To Save Older Dates?

Hi,

for my current project i want to save dates which are older than 1901(don’t ask why ;) ,e.g in german format: 12.05.1756).

The database field format is datetime (mysql).

The problem is that i can’t save my formular when the date is older than 1901.

On php.net(search for strtotime, its my first post i cant post the link) i found following note which i think is the problem:

I have following rule in the model defined:


array('beginn, ende', 'type', 'type' => 'date', 'message' => '{attribute}: Wrong format', 'dateFormat' => 'dd.MM.yyyy'),

Even when i delete the rule it is not working.

Do i have to convert the date with format ‘dd.MM.yyyy’ to the datetime-format(yyyy-MM-dd hh:mm:ss) by myself without strtotime and write it as string to database?

Is there an other workaround?

Thanks for your help!

http://stackoverflow.com/questions/2449380/how-can-i-work-with-dates-before-1900-in-php