This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Date Formats

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.2 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

The following %-prepended standard POSIX sequences can be used in date format strings:

sequence

meaining

range

%b

abbreviated month name

Jan...Dec

%B

full month name

January...December

%d

day of the month as a decimal number, 0-padded

01...31

%e

day of the month as a decimal number, blank-padded

 1...31

%E

day of the month as a decimal number

1...31

%f

English ordinal suffix for the day of the month

st, nd, rd, th

%H

hour in 24-hour format, 0-padded

00...23

%I

hour in 12-hour format, 0-padded

01...12

%k

hour in 24-hour format, blank-padded

 0...23

%l

hour in 12-hour format, blank-padded

 1...12

%m

month as a decimal number, 0-padded

01...12

%M

minute, 0-padded

00...60

%p

lowercase ante/post meridiem

am, pm

%P

uppercase ante/post meridiem

AM, PM

%Y

year as a decimal number including the century

...2005...

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.