date format compability with php<5.5