moved date format to math helper class