function date_popup_popup_to_format in Date 5.2
Same name and namespace in other branches
- 6.2 date_popup/date_popup.module \date_popup_popup_to_format()
- 6 date_popup/date_popup.module \date_popup_popup_to_format()
- 7.3 date_popup/date_popup.module \date_popup_popup_to_format()
- 7 date_popup/date_popup.module \date_popup_popup_to_format()
- 7.2 date_popup/date_popup.module \date_popup_popup_to_format()
Reconstruct popup format string into normal format string.
Parameters
string $format: a string in popup format, like YMD-
Return value
string a normal date format string, like Y-m-d
File
- date_popup/
date_popup.module, line 468 - A module to enable jquery calendar and time entry popups. Requires the Date API.
Code
function date_popup_popup_to_format($format) {
$sep = substr($format, -1);
ereg('(MDY)', $format, $parts);
return implode($sep, $parts);
}