You are here

function date_popup_datepicker_format_replacements in Date 7.2

Same name and namespace in other branches
  1. 7.3 date_popup/date_popup.module \date_popup_datepicker_format_replacements()

The format replacement patterns for the new datepicker.

2 calls to date_popup_datepicker_format_replacements()
date_popup_format_to_popup in date_popup/date_popup.module
Recreate a date format string so it has the values popup expects.
date_popup_popup_to_format in date_popup/date_popup.module
Reconstruct popup format string into normal format string.

File

date_popup/date_popup.module, line 808
A module to enable jQuery calendar and time entry popups.

Code

function date_popup_datepicker_format_replacements() {
  return array(
    'd' => 'dd',
    'j' => 'd',
    'l' => 'DD',
    'D' => 'D',
    'm' => 'mm',
    'n' => 'm',
    'F' => 'MM',
    'M' => 'M',
    'Y' => 'yy',
    'y' => 'y',
  );
}