Espero te sea de utilidad el siguiente codigo:

1) <mx:DateFormatter id="FormatoFecha" formatString="YYYY //MM/DD"/>
2) Naslov.text = FormatoFecha.format(eventObj.currentTarget.selectedDate)

2009/12/24 explorer <[email protected]>

> I am using DateChooser and I can t get date as whole date in form YYYY/
> MM/DD. I can set value in text field like this.
>
> I created function
>
> private function collectDate (fin:CalendarLayoutChangeEvent):void
> {
>
> var godina:String = eventObj.currentTarget.selectedDate.getFullYear();
> var mjesec:String = eventObj.currentTarget.selectedDate.getMonth() +
> 1;
> var dan:String = eventObj.currentTarget.selectedDate.getDate();
> var datum:String = toString(godina + '/' + mjesec + '/' + dan);
> Naslov.text = (godina + "/" + mjesec + "/" + dan);
>
> }
>
> Can I somehow set variable to contain value as Naslov.text
>
> Thx
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
>


-- 
ISC Obet Infante Carrera
Administración y Desarrollo de Software
Delphi/Flex

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to