Hi

I could manage to get the date in YYYY-MM-DD format, however my
problem is to extract the minutes and seconds.
Here is the code I used.

var str = "08-Oct-2008 17:15";
var arr:Array = str.split(' ');
var arr2:Array = String(arr[0]).split('-');
var dts:Date = new Date(String(arr2[0]+ " "+ arr2[1]+" "+arr2[2]));
Alert.show(" "+dts.getFullYear()+"-"+dts.getMonth()
+"-"+dts.getDate());

I am not sure how can I extract the last part, 17:15.

Thanks

Arun

On Oct 11, 1:35 am, "Venkat Viswanathan" <[EMAIL PROTECTED]>
wrote:
> Hi Arun,
>
> I dont think there is any inbuilt class to handle this. You will have to
> manually split the string and apply your own logic for converting this
> string to date.
>
> Regards,
> Venkatwww.venkatv.com
>
> On Fri, Oct 10, 2008 at 1:23 PM, Arun <[EMAIL PROTECTED]> wrote:
>
> > Please do not change the subject.
>
> > I am looking for a solution.
>
> > On Oct 10, 3:48 pm, Arun <[EMAIL PROTECTED]> wrote:
> > > Why is the discussion subject changed? I am looking for a solution
> > > here.
>
> > > On Oct 10, 3:28 pm, "Natwar Garg" <[EMAIL PROTECTED]> wrote:
>
> > > > Hello All,
>
> > > > I need to know (purpose/ how to use/ advantage of using) about Ariaware
> > RIA
> > > > Platform, Please let me know is there any other alternative (framework/
> > > > platforms) available for the same purpose.
>
> > > > If yes then please give me the names/links and suggest which one is
> > better
> > > > (advantage and disadvantage),
>
> > > > Venkat / Anand, Please suggest on this if any idea.
>
> > > > Thanks in Advance
>
> > > > Regards,
>
> > > > Natwar Garg
--~--~---------~--~----~------------~-------~--~----~
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