 
 func filterDate(value _val: Date, filters _filters: [String]) -> (value: String, result: FilterAction) {
 	var filters = _filters
-	var value:Date = _val
-	var result: FilterAction = .ok
+	let value:Date = _val
+	let result: FilterAction = .ok
 	var stringResult: String = ""
 	var escapeMethod = "htmlencode"
 

			if filter.contains(string: "_") {
				formatter.locale = Locale(identifier: filter)
			} else if filter.hasPrefix("format/") {
				var tmp = removePrefix(string: filter, prefix: "format/").stringByReplacing(string: "$DDOTESC$", withString: ":")
				formatter.dateFormat = tmp
			} else {
				return (value: "filter: \(filter) not supported", result: .ok)
			}


	filters.remove(at: 0)
	while filters.count > 0 {
		let filter:String = filters.remove(at: 0)

		if filter.isEmpty {
			continue
