About The Author

This is a sample info about the author. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis.

Get The Latest News

Sign up to receive latest news

Wednesday 24 August 2011

What is date() function in PHP?

 date() function is used to display the date, time, and month according to given format.

e.g echo date(“d/m/y”);  // output: 29/5/2011

d- date

D- day name

m- month

M- month name

y- sort year like 2011 as 11

Y-full year like 2011

h- hours

i- minute

s- second

0 comments:

Post a Comment