Dates picking up incorrect format
Posted: Wed Sep 07, 2005 6:01 am
Having a problem with dates.
If I do the following calculations
the output is
I have checked all server settings everything shows as English. I have tried adding
but to no avail. It seem to insist on the date being mm/dd/yyyy.
Any suggestions other than parsing the string out and re-ordering it?
Thanks
If I do the following calculations
Code: Select all
$i_str_date = '31/10/1979';
echo "<br/>".$i_str_date;
echo "<br/>".strtotime($i_str_date);
echo "<br/>".strftime('%c',strtotime($i_str_date));
echo "<br/>".date('Y-m-d',strtotime($i_str_date));Code: Select all
31/10/1979
363567600
10/07/1981 00:00:00
1981-07-10Code: Select all
setlocale (LC_TIME, "uk");Any suggestions other than parsing the string out and re-ordering it?
Thanks