I\'m having the date in this format in a Excel worksheet 03-Dec-10. So its not compatible while inserting it into the database. How to convert the date to the acceptable format?
While Jon's answer is correct, here is another option:
$input = '03-Dec-10'; $date = date('Ymd', strtotime($input));