Hi everyone...
Got some questions about the php date function.... Here it goes..
I use jquery's datepicker to get the date from the user in the format "day/month/Year". Eg. 23rd of november 2009 is 23/11/2009.
And to manipulate this is php i use the following code...
I store the date string in a variable $date
$dateOf = date ('(d-m-Y)', strtotime($date));
The problem i get is that when i pass the date string to the strtotime function it takes the number representing the month as the number representing the date.
Eg : When i give date as 24/12/2009 strtotime takes it as 12/24/2009
I can't get what i am doing wrong here... Will be glad if someone clears this up....
Thanks and Regards