I am trying to prepare an Excel report using php. In the report I have a column called date. I am trying to format the date as date('d-M-Y',strtotime($row['MYDATE']));
.
So my problem is when displayed on the browser it is displaying in correct format (10-SEP-2010)
but when on the excel sheet it is displaying as follows (9/10/2010)
.
Why would there be difference and how do I resolve this?