date to timestamp conversion

Discussion in 'PHP' started by Ovidiu20, Jul 28, 2011.

  1. #1
    I have some dates like this: 07-27 13:24:28
    How can I use strtotime function to transform those dates into timestamps? Or maybe someone can show me another function that can transform them?


    Thank you,
    Ovidiu
     
    Solved! View solution.
    Ovidiu20, Jul 28, 2011 IP
  2. #2
    strtotime('07-27 13:24:28');
    PHP:
    but it will need the year as well.
     
    stephan2307, Jul 28, 2011 IP