regex help

Discussion in 'PHP' started by yelbom, Dec 10, 2012.

  1. #1
    Im trying to preg_replace this date 03-Sep-2012 into 2012-03-Sep

    Please point me into right direction
    Thanks
     
    yelbom, Dec 10, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Why not just use the date format functions to format it the way you want it in the first place?
     
    Rukbat, Dec 11, 2012 IP