Converting date string to timestamp - is it possible

Discussion in 'PHP' started by liam1412, Aug 9, 2007.

  1. #1
    Hi

    I am trying to write a banner rotation script for my site. It's all well and good until it comes to the reporting bit. i want people to be able to select the dates etc. I have a DB were clicks and impressions are logged as a unix time stamp.

    Basically what I need to know is there any way of converting a date string (from selection boxes) into a unix time stamp so I can query the db to get the info I want
    Thanks
     
    liam1412, Aug 9, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Aug 9, 2007 IP
  3. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Ta muchly.

    Liam
     
    liam1412, Aug 9, 2007 IP
  4. daman371

    daman371 Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    strtotime also works.
     
    daman371, Aug 12, 2007 IP