hi! i have a question about find page when i try to find a page with a value in an input field i take the right results but if i try to make the same with an input date field it not work as i want i have two variables so my search is like this:
if($articlecat!="" && $searchdate!=""){
$articles = $pages->find("date%=$searchdate, articleCat%=$articlecat, parent=[name=blog]");
}elseif($articlecat=="" && $searchdate!="") {
$articles = $pages->find("date%=$searchdate, parent=[name=blog]");
}elseif ($articlecat!="" && $searchdate==""){
$articles = $pages->find("articleCat%=$articlecat, parent=[name=blog]");
}else {
$articles = $pages->find("parent=[name=blog]");
}
this working great for tag field (articleCat) but it's not working for date field (date) the string in $date has this format: January-2016 and in my pages has this format: 12-January-2016 so i want to take all the pages that has January-2016 on their date field can you help me?