How to get date and time from server

后端 未结 7 1787
感动是毒
感动是毒 2020-12-14 16:48

I want to retrieve date and time from server and according to it do some thing. For this I used following code:

$info = getdate();
$date = $info[\'mday\'];
$         


        
相关标签:
7条回答
  • 2020-12-14 17:17

    You have to set the timezone, cf http://www.php.net/manual/en/book.datetime.php

    0 讨论(0)
提交回复
热议问题