Subscribe
Tutorial search

PHP Date & Time Tutorials


We hope that you will enjoy our PHP Date & Time tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own PHP Date & Time tutorial to our site. Thank you !

Sort by:
Adding multiple times together in an array
Adding multiple times together in an array
Adding times together can be complex when taking seconds, minutes and hours into account of multiple time calculations add an array into the mix its even more complicated!
Difficulty:
How to: format dates in PHP
How to: format dates in PHP
This short how-to shows you how to format dates in PHP
Difficulty:
How to Change Date Formats in PHP
How to Change Date Formats in PHP
Working with date formats in PHP - programming how-to.
Difficulty:
Adding th, st, and rd on Numbers and Dates with PHP
Adding th, st, and rd on Numbers and Dates with PHP
This PHP programming tutorial will show you how to work with numbers and dates, adding the suffixes h, st, and d to the end of your digits.
Difficulty:
PHP Time Ago Function
PHP Time Ago Function
Interesting programming tutorial that shows you how to code and convert time elapsed into words (versus digits) using PHP.
Difficulty:
Difference Between Two Dates In Php
Difference Between Two Dates In Php
Need to calculate the difference between two dates? Not a problem. This PHP programming tutorial covering date functions teaches you how to do so.
Difficulty:
Date and Time In PHP
Date and Time In PHP
A detailed tutorial covering date and time functions in PHP.
Difficulty:
PHP Date Function Hints and Tips
PHP Date Function Hints and Tips
Learn the basics of the PHP Date Function with this quick, simple tutorial and cheat sheet!
Difficulty:
Getting start and end date of week in PHP
Getting start and end date of week in PHP
Getting start and end date of week in PHP
Difficulty:
How to Handling Date and Time in PHP/MySQL?
How to Handling Date and Time in PHP/MySQL?
Date and time can be inserted into mysql table in specific format only. But php will support different types of date and time formats. So, we should convert the date and time from php into specific format before inserting the value into mysql table.
Difficulty:
Creating Date format in PHP
Creating Date format in PHP
PHP offers various ways to create Date Formats. Here is an example which shows how to create Date Formats with PHP date() Function.
Difficulty:
Convert Month Name To Month Number Using Simple php
Convert Month Name To Month Number Using Simple php
Convert month name to month number using simple php. Here i am using the simplest trick of IF conditon in php which doesn’t need any complex logic.Here i am just converting JAN,FEB,MAR,APR,MAY…DEC accordingly. You can modify the script and change the month name according to your convinence.
Difficulty:
PHP : date() function
PHP : date() function
The date() function displays a formatted local time/date.
Difficulty:
Better PHP Calendar Class
Better PHP Calendar Class
I've dealt with creating monthly calendars in PHP and it has always been a bit of pain. How exactly to show the days in the month in a table without creating ugly and hard to maintain code? I believe this time I was able to find a good solution.
Difficulty:
Date dropdown menu with PHP and jQuery
Date dropdown menu with PHP and jQuery
In this tutorial we will create a dropdown menus for for the year, month and day. The day menu will be disabled until year and month has been selected in order to get the right number of days in the selected month of the year.
Difficulty:
Total Tutorials in Category: 77