You are here

function date_short_formats in Date 5

Same name and namespace in other branches
  1. 5.2 date_api.module \date_short_formats()
  2. 6 date_api.module \date_short_formats()

An array of short date formats.

Return value

array an array of short date format strings.

2 calls to date_short_formats()
date_formatter_setup_form in ./date_admin.inc
A form to create a date formatter option
date_widget_settings_form in ./date_admin.inc

File

./date.inc, line 2238
Date/time API functions

Code

function date_short_formats() {
  return array(
    'Y-m-d H:i',
    'm/d/Y - H:i',
    'd/m/Y - H:i',
    'Y/m/d - H:i',
    'd.m.Y - H:i',
    'm/d/Y - g:ia',
    'd/m/Y - g:ia',
    'Y/m/d - g:ia',
    'M j Y - H:i',
    'j M Y - H:i',
    'Y M j - H:i',
    'M j Y - g:ia',
    'j M Y - g:ia',
    'Y M j - g:ia',
  );
}