Hi friends, Thanks alot for the inputs given by u. It is working fine for me now.. I could convert "25-Mar-2010" to Date object. I didnt use parseFunction. I didnt split the string either. I used a combination of DateFormatter and DateField to achieve this. Thanks once again for your kind help.
My solution can be found in my blog at http://flexphpworld.wordpress.com/2010/03/11/formatting-date-converting-date-string-in-dd-mmm-yyyy-format-to-date-object/ Regards, http://flexphpworld.wordpress.com On Mar 11, 10:36 am, Fehmina Kanuga <whitepearl.fehm...@gmail.com> wrote: > HI , > try this > > townHallVO.meetingDate = DateField.stringToDate(meetingDateId.text,* > "YYYY-DD-MM"*); > this VO has meetingDate as one of the value , and meetingDate is Id of my > texbox. > > and use datefiled: > > <mx:DateField id="meetingDate" yearNavigationEnabled="true" width="50%" > formatString="YYYY-DD-MM" /> > hope this helps > > On Wed, Mar 10, 2010 at 11:47 PM, FlexiSush <sushant...@gmail.com> wrote: > > Hi friends, > > I have date in a string say var str:String="25- > > Mar-2010"; Now the question is how can i convert it into a Date > > object? I tried using DateField.stringToDate() method but couldn't > > find the answer. Please give me the solution. Thanks in advance:) > > > Regards, > >http://flexphpworld.wordpress.com/ > > > -- > > You received this message because you are subscribed to the Google Groups > > "Flex India Community" group. > > To post to this group, send email to flex_in...@googlegroups.com. > > To unsubscribe from this group, send email to > > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.