Posts: 3
	Threads: 2
	Joined: Mar 2011
	
Reputation: 
0
	 
 
	
	
		Sorry:
When I put a date in a search form it says me: "Invalid start date for creation date range"
My browser is firefox in spanish version.
Can anybody help me?
Thank
	
	
	
	
	
 
 
	
	
	
		
	Posts: 3
	Threads: 2
	Joined: Mar 2011
	
Reputation: 
0
	 
 
	
		
		
		04-05-2011, 02:00 AM 
(This post was last modified: 04-05-2011, 03:12 AM by lpalacin.)
		
	 
	
		Thanks. For now, I have designed a solution:
It works with original mktime (no makeTimeStamp)
It was wrong the variable $createstartdate. Is his place $creationstartdate.
Also a "." in the final search.
$searchCreateDate .= "`tblDocuments`.`date` <= ".$stopdate;
In Inc.ClassDMS.php
$searchCreateDate = "";
		if ($creationstartdate) {
			$startdate = mktime (0,0,0, ["month"], $creationstartdate["day"], $creationstartdate["year"]);
			
			if ($startdate) {
				$searchCreateDate .= "`tblDocuments`.`date` >= ".$startdate;
			}
		}
		if ($creationenddate) {
			$stopdate =  mktime (23, 59, 59, $creationenddate["month"], $creationenddate["day"], $creationenddate["year"]);
			if ($stopdate) {
				if($startdate)
					$searchCreateDate .= " AND ";
				$searchCreateDate .= "`tblDocuments`.`date` <= ".$stopdate;
			}
		}