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\']; $
You have to set the timezone, cf http://www.php.net/manual/en/book.datetime.php