Results 1 to 3 of 3

Thread: the date function for GMT?

  1. #1
    Join Date
    Aug 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default the date function for GMT?

    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?

  2. #2
    Join Date
    Dec 2005
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    date() returns local time
    gmdate() returns GMT

  3. #3
    Join Date
    Aug 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •