How to use date default timezone get in PHP

This article describe about date_default_timezone_get() Function in PHP.
  • 2041

date_default_timezone_get() Function

This function return the default timezone used by all date/time function in a Script.

Syntax

date_default_timezone_get(void)

 

Parameter Description
void Optional.

Example

<html>
<body>
<?php
echo(date_default_timezone_get());
?>
</body>
</html>

 

Output


pic2.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.