Ideally, in the result function, the dto would be cast to an associated
AS class as a VO; making it strongly typed.  This can be done
automatically by using [RemoteClass(alias="com.myDTO")]  in a VO class;
but that's a more involved topic.  So, let's take this one step at a
time.  What is the data type of item.Date_Collected?  You can find this
by inspecting the the object in debug mode.  If it's a string, try this
in your filter function:

return item.Date_Collected ==
dfconv.format(wholeDate.selectedDate).toString();

The key is to compare apples to apples.  If one side is an apple and the
other is an orange, you have to turn the orange into an apple before
comparing.

-TH

--- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> wrote:
>
> Okay, I guess here is where I¹m stuck or confused about what to do
exactly.
> Could you suggest a couple of resources I could refer to? Thanks.
>
> --
> Blair
>
>
>
>
>
> From: Tim Hoff [EMAIL PROTECTED]
> Reply-To: flexcoders@yahoogroups.com
> Date: Thu, 23 Oct 2008 19:30:02 -0000
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Help: filterFunction and Dates
>
> OK, so what you're saying is that item.Date_Collected is a string
> (2008-10-01) and not a date. This goes back to the original
suggestion,
> use a Date() type for that variable in the VO. If you do, then the
last
> sample should work; using selectedDate.
>
> -TH
>


Reply via email to