logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
English Garden
Costuming
Charity
Women's Fashion
Pop Music


dailyclick
All times in EST

Tatting: 13:00 PM

Full Schedule
g
g PHP Site
Editor Wanted
BellaOnline's PHP Editor

g

The PHP Date Function Format Chart
Guest Author - Diane Cipollo

The PHP date() function is one of the most useful built-in functions. Below is the syntax and description for the various format controls.

The PHP Date() Function Format Chart
a am or pm in lowercase letters
AAM or PM in uppercase letters
hhour in digits (01 to12)
Hhour in digits (00 to 23)
ghour in digits without the leading zero (1 to 12)
G hour in digits without the leading zero (0 to 23)
iminutes in digits (00 to 59)
s seconds in digits (00 to 59)
dday of month in digits (01 to 31)
jday of month in digits without the leading zero (1 to 31)
Dday of week in three letter text (Mon to Sun)
lday of week in complete text (Monday to Sunday)
syntax is a lowercase "L"
wday of week numeric (0 to 6) (Sunday to Saturday)
Fmonth in complete text (January to December)
mmonth in digits (01 to 12)
nmonth in digits without leading zero (1 to 12)
Mmonth in three letter text (Jan to Dec)
Yyear in four digits (2004)
yyear in 2 digits (04)
zday of year (0 to 365)
tnumber of days in a month (28 to 31)
SEnglish suffix (th, nd, st)
Ztime zone offset in seconds (-43200 to 43200)
Useconds since Epoch (Jan 1, 1970 00:00:00 GMT)

The PHP Date Function





This site needs an editor - click to learn more!

RSS | Previous Features | Site Map


Content copyright © 2008 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

Digg! g delicious Save to Del.icio.us

g


For FREE email updates, subscribe to the PHP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2008 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor