added handlebars date template function