date format fallback for php < 5.3