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

1.Where are the sessions storing ? 2.What are the contents of a session file ? 3.If the server is loaded with too many session files there is a possibility of server crash. How can we solve this issue? 4. How does php server identify that the particular session belongs to particular user ? For ex: If two users A and B logged from different machine, separate session files (say 1 and 2) will be created in the server. But how the php knows that 1 belongs to A and 2 belongs to B ?

4 Answers   PA Consulting, TCS,


Is it worth learning php in 2019?

0 Answers  


Are react hooks stable?

0 Answers  


What is php mainly used for?

0 Answers  


what is the scope of php in the future if any other language is developed then may be php is loss ???

1 Answers   ATI,






Applications written to provide a GUI shell for Unix and Linux are called

0 Answers  


How can we know that a session is started or not?

3 Answers   Rushmore Consultancy,


Name some of the functions in php.

0 Answers  


Is multilevel inheritance possible in php?

0 Answers  


Difference between notify url, return url in paypal payment gateway?

4 Answers   A1 Technology, Capital IQ, CMS, Essar, HCL, IAS, Karvy, L&T, State Bank Of India SBI, TATA, Tisco, WNS,


How to enable cURL in PHP?

0 Answers   HCL,


What are the features of object-oriented programming in php?

0 Answers  


Categories