public any function getLastStatDate( required string templateId )
Retrieves the latest date on which there are statistics for the given template.