testing dates in templates