Is there a way to parse a string in HH: MM format into a Date (or other) object using standard libraries?
I know that I can parse something like "9/17/2008 10:30" into a Date object using
var date:Date = new Date(Date.parse("9/17/2008 10:30");
But I want to make out only 10:30. The following code will not work.
var date:Date = new Date(Date.parse("10:30");
I know that I can use a special RegEx for this quite easily, but it looks like it should be possible using the existing Flex API.
source
share