One way would be to use a formatter (see below).  You could to do the same thing using Action Script or you could format the date in .NET before you return it to Flex.

Cheers,
TH

<mx:VBox>
           <mx:DateFormatter id="df" formatString="MM/DD/YYYY"/>
            <mx:Text id="myDate" text="{df.format(data.myDate)}" >
</mx:VBox>


--- In [email protected], Franca Daniel <[EMAIL PROTECTED]> wrote:
>
>
> i wrote a webservice using c# and it return a
> DateTime object. When i use it in flex the date looks
> like a stranger number, anyone knows how to convert it
> to a Date object in flex ?
>
> thank you!
>
> Daniel
>
>
>
> _______________________________________________________
> Navegue com o Yahoo! Acesso Grátis, assista aos jogos do Brasil na Copa e ganhe prêmios de hora em hora!
> http://br.yahoo.com/artilheirodacopa/
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to