check  date format is correct or else use default