add correct date format for search.php