Hey all,
I've added a datefield to one of my DOM classes and added some configuration:
class NotulenItem extends DataObject {
static $db = array(
'Vergaderdatum' => 'Date'
);
function getCMSFields_forPopup() {
$dateField = new DateField('Vergaderdatum');
$dateField->setConfig('showcalendar', true);
$dateField->setConfig('dateformat', 'dd/MM/YYYY');
$dateField->setLocale('nl_NL');
$fields = new FieldSet();
$fields->push($dateField);
return $fields;
}
}
This works just about right, when I add a record to my page I see the date in the format I want (dd-mm-yyyy). When I then return to the overview of records that are attached to the page, the date is shown in the default format (yyyy-mm-dd). Is there some way I can influence the format of the Date in the DOM overview?
Cheers!
Barry