Maybe not the best solution, but you could use PHP date function to figure out the current date and use it in place of your hard coded "2013-01-07", something like
$curDate = date("Y-m-d");
$holder = ArticleHolder::get()->filter('URLSegment', 'meetings')->first();
return ($holder) ? ArticlePage::get()->filter(array('ParentID' => $holder->ID,'Date:GreaterThan' => $curDate))->sort('Date DESC') : false;
edit* - added missing quotes around (Y-m-d). Thanks for pointing out Bruce.
Posted to: get dates later than today | Show Thread | Post Reply