You are here

function date_popup_popup_to_format in Date 7.2

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 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 771
A module to enable jQuery calendar and time entry popups.

Code

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