PHP Classes

Convert a Given value

Recommend this page to a friend!

      Timezone Converter  >  All threads  >  Convert a Given value  >  (Un) Subscribe thread alerts  
Subject:Convert a Given value
Summary:Convert timezon of a specific date
Author:Marco Rossi
Date:2012-07-19 13:15:06

  1. Convert a Given value   Reply   Report abuse  
Marco Rossi - 2012-07-19 13:15:06
Hi! How can i convert a given value to a specific timezone?
Example i want to convert "2012-07-19 17:20:26" (GMT) in CEST

i make:

$tz->setProperty('DateTime', '2012-07-19 13:20:26');
$tz->setProperty('Timezone', 'CEST');
print "<br/> CEST::" . $tz->convertDateTime();

but returns the same date...

And another question, do you have the sql query for populate a table with this timezone value?

Thank you!