Added basic date and time support for template.