format and date fixing