my question is trivial i think, yet i cant figure out how to solve it.
I have a string that contains a date in the following format:
$date=('25/8/1990');
I want to convert it to:
1990-8-25
I tried to do the following:
$newdate=date('Y-m-d',strtotime($date));
But the result i get is
1969-12-31
instead of
1990-8-25.
Thank you