Recent Additions:

Creating a Simple Web Advertisement

Toon Site Navigation Header

Creating Cool Celebrity Wallpapers

Shopping Site Animated Banner

Designing a Cake Shop Logo

Creating a Girlie Smiley

Drawing a Cartoon Horse

Colorful Beads Text Effect

XP Style Wind Mill Icon

Water Ripples Navigation Header

Shopping Mall Logo

Creating a Lovefool Smiley

Animated No Smoking Sign

Creating and Animating Incense Sticks

Creating a Futuristic Logo

3D Leather Text Effect

Changing Calendar Dates

Logo with Iconic Headphones

Animating a Dolphin Diving Into the Water

Creating Diamond Earrings

Animated Night to Day Effect With Rising Sun

 

Date/Time


Functions:
- <?date($format,$time)>
- <?
gmdate($format,$time)>
- <?
time()?>

The date() function is used to display times and dates in various ways.
For example, if we wanted to print the current date and time, we might use a tag like:
- <?echo date("D M d, Y H:i:s")?>.
This would sumit like: Fri Jan 03, 2003 12:01:21 (or what ever the date and time is)

Whats all the letters about, what happens if i want it in another order, this will explain:

- Y = Year eg. 2003
- y = Year eg. 03
- M = Month eg. Jan
- m = Month eg. 01
- D = Day eg. Fri
- d = Day eg. 03
- z = Day of the year eg. 002
- H = Hours in 24 hour format eg. 07
- h = Hours in 12 hour format eg. 7
- i = Minutes eg. 29
- s = Seconds eg. 28
- U = Seconds since epoch eg. 1041604168
Thats it just a little tutiral to explain how to show the date or time in php!