Learn PHP Date & Time Function With Webcodeschool
Learn PHP Date & Time Function With Webcodeschool
hey Friends, In this article I will show you about Date & Time Fuctions of PHP. you can Learn PHP Date & Time Function easily. We can use them in Any of PHP CMS too.
1. Get Current Date
2. Print Date with Different Formats
";
echo date("d-m-Y") . "
";
echo date("d.m.Y");
?>
3. Print Time with Different Formats
";
echo date("F d, Y h:i:s A") . "
";
echo date("h:i a");
?>
4. Print Date & Time as Timestamp
5. Print Date & Time as User Readable Form
";
// Converting timestamp to human readable format
echo(date("F d, Y h:i:s", $timestamp));
?>
6. Convert Particular Date to a Timestamp
7. Print Weekday Name From A Date(Timestamp)
Check My another Article on Jquery.
Rotate/Spin Images Using Jquery.
If You need More Help Regarding Date & Time or any other. Leave a comment