assign date to template