Horje
convert one time zone datetime value to another using php Code Example
convert one time zone datetime value to another using php
<?php
$date = new DateTime('2000-01-01', new DateTimeZone('Pacific/Nauru'));
echo $date->format('Y-m-d H:i:sP') . "\n";

$date->setTimezone(new DateTimeZone('Pacific/Chatham'));
echo $date->format('Y-m-d H:i:sP') . "\n";
?>
  
  2000-01-01 00:00:00+12:00
2000-01-01 01:45:00+13:45




Php

Related
get age with carbon in laravel Code Example get age with carbon in laravel Code Example
wordpress https too many redirects Code Example wordpress https too many redirects Code Example
get user ip laravel Code Example get user ip laravel Code Example
php get age from dob Code Example php get age from dob Code Example
row count in codeigniter Code Example row count in codeigniter Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8