On 7/25/05, javawebgrrl <[EMAIL PROTECTED]> wrote:

>   I have a situation where I want a user to be able to enter a date
> into a Text Field.

>   My problem is what to do if the user enters something like "abc". I
> am wondering if I could use the parseDateString method of the
> DateFormatter class. If this method returns a valid Date, than I can
> assume all is OK, if not, I can show an error message.

Yes, I think you should use parseDateString.  At least that's what I
used on my EditableDateField:
http://manish.revise.org/2005/04/editabledatefield-component.html

Manish


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

<*> 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/
 



Reply via email to