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'17/10/21 04:16:3117/10/21 04:16:31
'F j, Y, g:i a'October 17, 2021, 4:16 amOctober 17, 2021, 4:16 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