Added dateFormat script for the templates