logo
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
European Travel
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel


dailyclick
All times in EST

Autism Spectrum Disorders: 4:00 PM

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 © 2014 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


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


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


BellaOnline Editor