Posted: Fri Jun 29, 2007 5:34 am
In The uk the date format is dd/mm/yyyy is there a way to change this in dataface?
Phil Stacey
Phil Stacey
function time__default() {
return date('H:i');
}
[timefield]
widget:type=text
function time__default() {
return date('H:i:s');
}
function opening_time__display(&$record){
return date('Y-m-d g:i a', $record->strval('opening_time'));
}
function closing_time__display(&$record){
return date('Y-m-d g:i a', $record->strval('closing_time'));
}
[Start_Time_of_Presentation_Day_1]
widget:type = time
widget:format = "H:i"
widget:starttime = "8:00"
widget:endtime = "18:00"
widget:interval = "15"
function Start_Time_of_Presentation_Day_1__display(&$record){
return date('h:i a', strtotime($record->strval('Start_Time_of_Presentation_Day_1')));
}
widget:format = "h:i a"