Posted by Pierre
2015-04-26

Great script! I could use it and customize everything.
The only thing I have some problems with its the date format.
I want to change the date into (only) date (no time) and dit is as below. I also changed the type in the mysql database to DATE
However I keep on getting errors when I save the record. The error is: [Geboortedatum] Invalid format (24-11-1961)

This is the code that I changed......

'geboortedatum'=>array(
XA_CLASS=>'CVDate',
XA_CAPTION=>RSTR_GEBOORTEDATUM,
XA_FORMAT=>'d-m-Y',
XA_REQUIRED=>false,
XA_SIZE=>10,
XA_MIN_CHAR=>0,
XA_MAX_CHAR=>10,
XA_SEARCH_OP=>'s%',
XA_SEARCH_OP=>'s=',
XA_LIST=>'(sp)(sr)(fd)',
),

Maybe someone knows what I do wrong....