convert dates in Unix time format

Discussion in 'PHP' started by ktsirig, Feb 11, 2007.

  1. #1
    Hello all,
    I have around 900 dates in the format of DD-MM-YYYY and I want to convert them in Unix time format...
    Is there a way to do this? I was thinking of passing them into an array, and then, for each date, I would use the function date() I suppose and get the Unix time format of them... But I don't know the way to do it...

    So, for instance, if you have:
    $date_to_format='05-10-2006' , how would I get the Unix timestamp?

    Thank you in advance!
     
    ktsirig, Feb 11, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    krakjoe, Feb 11, 2007 IP