add getter format to date