i have a problem..i have a string that is a date...however it's not always in the same format.
my string variable is called $new_date, and is an array
so lets say sometimes $new_date[1] = "30 Sep 2002", and othertimes it is $new_date[2] = "Sep 30 2002"
I need to make sure it's always in the same format, so I was thinking that I could check to see if the first character was a number, and if it was, explode the string then reassemble it in the format i want.
Am I going about this the wrong way? Is there a php function that will help me? I can't seem to find one off hand.