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

What is variable declaration?

0 Answers  


What is the different between count() and sizeof() in php?

0 Answers  


When are you supposed to use endif to end the conditional statement?

0 Answers  


What is php full form?

0 Answers  


Write a PHP code to print following number pattern: 123 456 789

5 Answers  






Tips to optimize the php script..... Suggestion for exception handling in php...

1 Answers  


How do you pass a variable by value in php?

0 Answers  


Tell me what should we do to be able to export data into an excel file?

0 Answers  


What is The difference between ' and " where they can ben in between or outmost and how

2 Answers   Avis Software,


What is php and its advantages?

0 Answers  


How to check an key is exists in array?

0 Answers  


What is the difference between $message and $$message in php?

0 Answers  


Categories