diff --git a/webgui/include/db.php b/webgui/include/db.php
index acd04723dbc3132cb24c288265a9d3e753f83cbd..9162addf6d4d134030b4236a04e6a3fdb9865b76 100644
--- a/webgui/include/db.php
+++ b/webgui/include/db.php
@@ -257,12 +257,10 @@ function DBSelectSearch($query,$search,$filters,$sorts) {
 					} elseif ($data['comparison'] == "eq") {
 						$match = "=";
 					}
-					# Convert to ISO format	
-					# FIXME
-#					$unixtime = str2time($data['value']);
-#					$date = DateTime->from_epoch( epoch => $unixtime );
-#					$value = $db->quote($date->ymd());
 
+					# Convert to ISO format	
+					$date = new DateTime($data['value']);
+					$value = $db->quote($date->format('Y-m-d'));
 
 				} elseif ($data['type'] == "list") {
 					# Quote all values