DateTime conversion function using PHP
It’s really very simple to convert times in different timezones using the following function.
As you can see, it takes 2 arguments, $datetime which is a time string and a $timezone which is a timezone to convert to.
A usage example would be:
|
|