gmdate(): GMT/UTC date and time

gmdate($date_format,$timestamp);
ParameterDESCRIPTION
$date_formatRequired : Format required for output. Details are below.
$timestampOptional: Unix timestamp
Output is the Greenwich Mean Time - GMT date and time string displaying as per the input format.

Functionality of gmdate() is same as date() function

Difference in output between date() and gmdate()

Formatdate()gmdate()
'd/m/y H:i:s'24/07/21 05:37:1624/07/21 05:37:16
'F j, Y, g:i a'July 24, 2021, 5:37 amJuly 24, 2021, 5:37 am


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com






    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer