Date and Time

Date:

PHP date function return current date of server with the requested date format.

syntax:

The return format is string.
$format - Mandatory and data type is string.
$timestamp - Optional and data type is integer, time() is the default value.

Time:

Time function return current unix timestamp.

Example For UTC Timezone

Click the below button to see the demo.
Demo for UTC Timezone

Example For India Timezone

Click the below button to see the demo.
Demo for India Timezone

Please follow and like us:
error

Leave a Reply

Your email address will not be published. Required fields are marked *