You are here

function datepicker_format_replacements in Date 6.2

Same name and namespace in other branches
  1. 7 date_popup/date_popup.module \datepicker_format_replacements()

The format replacement patterns for the new datepicker.

2 calls to 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 594
A module to enable jquery calendar and time entry popups. Requires the Date API.

Code

function 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',
  );
}