Convert time from one timezone to another


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //date_default_timezone_set('Europe/Vilnius');
  2.  
  3. echo date('Y-m-d H:i', strtotime('2008-10-09 08:55 GMT'));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.