You are here

function date_short_formats in Date 6

Same name and namespace in other branches
  1. 5.2 date_api.module \date_short_formats()
  2. 5 date.inc \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_format_options in date/date_admin.inc
Store personalized format options for each user.
date_widget_settings_form in date/date_admin.inc

File

./date_api.module, line 321
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

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