How to convert a timezone from one to another ?



How to convert a timezone from one to another ?..

Answer / prasadkonnur

date_default_timezone_set() function

ex: date_default_timezone_set('Europe');

And date_default_timezone_get() function to get date.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More PHP Interview Questions

How to use http headers inside php?

0 Answers  


How can we connect to a mysql database from a php script?

0 Answers  


What is polymorphism in oop php?

0 Answers  


What is the scope of a variable defined in a function?

0 Answers  


What is the difference between $argv and $argc? Give example?

0 Answers  






Define urlencode() and urldecode() used in php?

0 Answers  


Where is session value stored php?

0 Answers  


what is constructor

0 Answers  


What is the use of magic function in php?

0 Answers  


How to block direct directory access in PHP?

0 Answers  


Do you know what is the function func_num_args() used for?

0 Answers  


Is it possible to use com component in php?

0 Answers  


Categories