[symfony-users] Re: Compare date only from date time field using "criteria"

2009-09-28 Thread Avani
Hey Garath, Thanks a lot.. this is exactly what I wanted. On Sep 28, 3:16 pm, Gareth McCumskey wrote: > There are a few ways you can do this. One way is to create a criterion to > AND between the same date and two different times like: > > $c = new Criteria(); > $criterion = $c->getNewCr

[symfony-users] Re: Compare date only from date time field using "criteria"

2009-09-28 Thread Gareth McCumskey
There are a few ways you can do this. One way is to create a criterion to AND between the same date and two different times like: $c = new Criteria(); $criterion = $c->getNewCriterion(ItineraryPeer::START_TIME, $date." 00:00:00", Criteria::GREATER_EQUAL); $criterion->addAnd($c->getNewCriterion(Iti