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 can you create a session in php?

0 Answers  


Explain briefly about a search-friendly site looks like?

0 Answers  


What is htmlspecialchars?

0 Answers  


When to use self over $this?

0 Answers  


What are the encryption techniques in php?

0 Answers  


What is an operator in php?

0 Answers  


How many types of php are there?

0 Answers  


What are the different ways we can retrive the mysql results using php ? Explain each

1 Answers  


Do you know what is use of count() function in php?

0 Answers  


How to calculate the difference between two dates using php?

0 Answers  


What is the delimiter syntax is PHP's default delimiter syntax

0 Answers  


How will you create a bi-lingual site (multiple languages) ?

3 Answers  


Categories