Having the same problem here. IMHO, this is so much easier in CF7 Flash Forms with the mask property (mask="99:99" always forces four numbers with a colon in the middle), and I'm not sure why it has to be as complicated as it is in Flex2.
The closest I've gotten is by using a number validator and changing the decimalSeparator property to colon. Unfortunately, this will still allow "times" like 1:234, 123:4, 1234, etc. I'm assuming though you can probably develop something with RegExp, but I don't quite understand enough about regular expressions. Another interesting thing...I noticed that DateChooser's selectedDate property includes time as part of its data. Any way to format or access that? Agreed though - surely someone has taken care of this. - Chris --- In [email protected], "boy_trike" <[EMAIL PROTECTED]> wrote: > > Flex has a NUMBERformatter and a DATEFormatter. I have the need for a time formatter and > would not like to re-invent what someone else must have already done. Ideally I want to > have a textinput field which restricts input to 0-9: APM. I would like to accept the following > and convert all to 3PM > > 3P > 3 > 3:00 > 03:00 > 15:00 > 3:00PM > > Of course, if the time is invalid (i.e. 2:65PM, 25:2, etc.) I would like to display an error > > Does something like this exist or must I roll my own? > > thanks: > > Bruce > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

