added date format to emailgenerator
added date format to emailgenerator