do i need to use a function for these dates to be compared?
just trying to see if $todate entry
if (($todate >= '2002-11-30') AND ($todate <= '2003-02-28')){
$result='yeah';
}
As long as $todate is in the formay yyyy-mm-dd then your statement should be fine, it will do an alphanumeric compare.
If $todate is a different format (such as a timestamp) then you will need a function.