Thanx a lot!

On Tue, Dec 16, 2008 at 8:49 PM, Sangeeta Kalyani <
[email protected]> wrote:

>
> Use ds= "30 12:00:00 GMT+0530 2008";
> Because,
>
> public static function stringToDate(valueString:String,
> inputFormat:String):Date
>
> Parses a String object that contains a date, and returns a Date object
> corresponding to the String. The inputFormat argument contains the
> pattern in which the valueString String is formatted. It can contain
> "M","D","Y", and delimiter and punctuation characters. The function
> does not check for the validity of the Date object. If the value of
> the date, month, or year is NaN, this method returns null.
>
> You can refer to the DateField API doc for more information.
>
> Sangeeta
>
> On Dec 16, 3:52 pm, sheetal <[email protected]> wrote:
> > Hi,
> > I am using DateField as an itemrenderer and the following code:-
> >
> >                     ds= "Thu Oct 30 12:00:00 GMT+0530 2008";
> >                     var dt:Date = new Date();
> >
> >                     try{
> >                         dt = DateField.stringToDate(ds, "MM/DD/YY");
> >                     }catch(e:Error){
> >                         //
> >                         return;
> >                     }
> >                     this.selectedDate=dt;
> >
> > i am getting dt=null; always.
> > Is there anything wrong with the code.Any other way to do the same?Plz
> > share.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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