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

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



new
Natural Living
Folklore and Mythology
Baptist
Florida
Cosmetics
Distance Learning
Reading




dailyclick
All times in EST

Full Schedule
g
g PHP Site

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!

Add The+PHP+Date+Function+Format+Chart to Twitter Add The+PHP+Date+Function+Format+Chart to Facebook Add The+PHP+Date+Function+Format+Chart to MySpace Add The+PHP+Date+Function+Format+Chart to Del.icio.us Digg The+PHP+Date+Function+Format+Chart Add The+PHP+Date+Function+Format+Chart to Yahoo My Web Add The+PHP+Date+Function+Format+Chart to Google Bookmarks Add The+PHP+Date+Function+Format+Chart to Stumbleupon Add The+PHP+Date+Function+Format+Chart to Reddit




RSS | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


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


Content copyright © 2018 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.

g


g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter

Note: BellaOnline uses cookies to help provide a consistent user experience. Our advertisers may use cookies to help customize ads. Please contact us with any question about our cookie use.



vote
Summertime Foods
Corn on the Cob
Sangria
Burgers on the Grill
Apple Pie



g


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


BellaOnline Editor