PDA

View Full Version : the date function for GMT?



Dennis_Gull
04-21-2007, 10:56 AM
Hello again :)

Im working on a form where you can select different dates but I want the date to be in GMT and not the local date so I have to ask if:

echo date('Y-m-d H:i:s'); give the local time or the GMT 0?

billyboy
04-21-2007, 11:03 AM
date() returns local time
gmdate() returns GMT

Dennis_Gull
04-21-2007, 11:08 AM
thank you :)