How to convert a timezone from one to another ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is xss in php?

652


What is the difference between get and post in php?

607


What is magic function in php?

619


How long does a session last in php?

596


What does $globals means?

602






Why php was called as personal home page?

622


What are the popular frameworks in php?

605


Is jquery better than javascript?

641


What is file upload?

665


Tell me what types of loops exist in php?

648


What type of headers have to be added in the mail function to attach a file?

634


What is php session_start() and session_destroy() function?

673


What is a php form?

633


What is meant by pear in php? What is the purpose of it?

596


What is composer phar?

579