 			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
+				formatter.dateFormat = removePrefix(string: filter, prefix: "format/").stringByReplacing(string: "$DDOTESC$", withString: ":")
 			} else {
 				return (value: "filter: \(filter) not supported", result: .ok)
 			}


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

		if filter.isEmpty {
			continue


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

