adding the date to template