Login   Register  
PHP Classes
elePHPant
Icontem

Convert a Given value

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

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

  1. Convert a Given value   Reply   Report abuse  
Picture of Marco Rossi
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!