1
Hi,
I try to exploit the FormTextDateSelect with a "datetime" field from a MySQL DB.
The value of datetime field is '2005-05-01 00:00:00' ($mydate in the folowing code).
$f_date = new XoopsFormTextDateSelect(_FO_DATE, 'date', 15,$mydate);
In the contructor of FormTextDateSelect class there is this code :
$value = !is_numeric($value) ? time() : intval($value);
As my field is not numeric i have everytime the current date.
I don't found the php function to convert my field '2005-05-01 00:00:00' in a numeric field witch can be interstanding by the calendar. Can you help me ?
I want to convert in a french format. Is there is a documentation about ?