update format for dates