hi,
i need code for current date and time. I am trying this following code.
$datetime=date("d/m/y H:i:s");
But i am getting date is correctly. But time gives GTM time, means less 5.30h.
so please help to me.
Thanks.
i need code for current date and time?
Moderator: General Moderators
Try
But it should be the other way around, gmdate() gives GMT time and date() gives local time.
Code: Select all
gmdate()