PHP date?

Discussion in 'Web Design & Coding' started by Eagle710, Nov 14, 2007.

  1. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    I accept a input of type text from a website.... and i would like my php script to take lets say the number 10102007 as input and convert into a date() format in PHP and then see if it a future date or past. Im trying to book hotels, so availability wise.

    Eagle710
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
  3. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Looked there didnt help me as much as i would like.
     
  4. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    you may need to do some processing before hand and send it over to date() later.
     
  5. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom