Thursday, June 4, 2015

PHP- set timezone and get timezone in php

PHP- set timezone and get timezone in php

 1.) Set timezone :-
<?php echo date_default_timezone_set("Asia/Kolkata"); ?>

 2.) Get timezone :-
<?php echo date_default_timezone_get(); ?>

No comments :

Post a Comment