You are here

function date_popup_popup_to_format in Date 7

Same name and namespace in other branches
  1. 5.2 date_popup/date_popup.module \date_popup_popup_to_format()
  2. 6.2 date_popup/date_popup.module \date_popup_popup_to_format()
  3. 6 date_popup/date_popup.module \date_popup_popup_to_format()
  4. 7.3 date_popup/date_popup.module \date_popup_popup_to_format()
  5. 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 504
A module to enable jquery calendar and time entry popups. Requires the Date API.

Code

function date_popup_popup_to_format($format) {
  $replace = array_flip(datepicker_format_replacements());
  return strtr($format, $replace);
}