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:
Display Date From UNIX Timestamp
Display Date From UNIX Timestamp
Learn how to take a UNIX timestamp and convert it to readable date string with PHP
Difficulty:
Display Date From UNIX Timestamp
Display Date From UNIX Timestamp
Learn how to take a UNIX timestamp and convert it to readable date string with PHP
Difficulty:
Translate date into your language
Translate date into your language
You have non-English website? Well translate your date into your language for your visitors and here you will be shown how.
Difficulty:
Display time by using images
Display time by using images
Learn how to display time by using images on your website.
Difficulty:
Time Greeting
Time Greeting
Display a greeting which matches the current time, using PHP. Whether it is morning, afternoon, evening or night, follow this tutorial to learn how to automatically detect the time and show the appropriate text. You can even use this technique to display different styles to your visitors depending on the time of day.
Difficulty:
Date and time manipulation functions
Date and time manipulation functions
In PHP, despite the big choice of functions, there is not a specific function to add an interval of time, that could be a day, hour, month or year to a given date, therefore we have to code something to do the job. In these series of articles, we'll create some functions that could be useful for your applications.
Difficulty:
Make a Calendar in PHP
Make a Calendar in PHP
In this tutorial we'll be going through the ins and outs on how to make a calendar in php.
Difficulty:
Working With Time Zones in PHP
Working With Time Zones in PHP
This tutorial explains how to handle converting times to different time zones using the DateTime and DateTimeZone classes provided by PHP 5.2.0+.
Difficulty:
Working with dates and times in PHP
Working with dates and times in PHP
When developing more complex PHP sites, especially forums, discussion boards and blogs where date and time functions are important, you"™ll regularly encounter situations where you need to display and manipulate values based around the current date and time. PHP includes a range of functions which can help you to easily format and adjust your date and time displays to suit your needs. In this tutorial, we"™ll look at some easy ways to display calendar information for your visitors.
Difficulty:
Show when a file was last modified
Show when a file was last modified
Get the time a certain file was last modified according to the server, and print it on the page.
Difficulty:
Translate date into your language
Translate date into your language
In this tutorial I'm going to show you how to translate date into your language and display it.
Difficulty:
Self-Updating Copyright - Learn a simple trick to keep your copyright year updated
Self-Updating Copyright - Learn a simple trick to keep your copyright year updated
Self-Updating Copyright - Learn a simple trick to keep your copyright year updated
Difficulty:
Calculate the number of days, weeks, years between two user inputted dates
Calculate the number of days, weeks, years between two user inputted dates
Calculate the number of days, weeks, years between two user inputted dates
Difficulty:
Create a Countdown timer in PHP
Create a Countdown timer in PHP
Create a Countdown timer in PHP
Difficulty:
PHP Date: Finding Date / Time
PHP Date: Finding Date / Time
I show you how to find out what the date was yesterday, 1 week ago, and 1 month ago using PHP. Once you learn the principal of how the script works, you can use it to determine how long ago anything was.
Difficulty:
Total Tutorials in Category: 56