 |
|
 |
| |
Developer on focus
Anton Zamov is a dipl. engineer with more than 6 years of active professional
experience and many awards ...
read more>>
|
|
 |
 |
 |
|
 |
|
 |
| |
|
How to display the date in an appropriate format using PHP?
|
You should use the special date function in PHP.
Take a look at the example
<?php
echo date("D M d");
?>
will display: Mon Feb 03
where
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
|
About the author of this programming example or tutorial:
Anton Zamov is a software engineer with more than6 years
of active experience in web and software development and design.
Anton Zamov has extensive experience and broad knowledgebase
in C# and JAVA programming and has created a lot of
running e-commerce systems, portals and content management
systems using PHP and other web development technologies.
For more information about Anton Zamov, you may visit the personal web site of
Anton Zamov.
|
|
|
 |
 |
 |
|
|