Newsgroups: comp.lang.smalltalk
Subject: Dates
From: bob.nemec@canrem.com (Bob Nemec)
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!swrinde!pipex!oleane!jussieu.fr!fdn.fr!uunet!fonorola!portnoy!canrem.com!bob.nemec
Distribution: world
Message-ID: <60.16598.4418.0N1E3081@canrem.com>
Date: Mon, 22 May 95 21:58:00 -0500
Organization: CRS Online  (Toronto, Ontario)
Lines: 13

|I have a string and want to determine if it contains a valid date.
|I also want to do this without bringing up a notifier.
|
|How can this be done??  (Date readFromString: <string> brings up a
|notifier if the string contains an invalid date).
|
I've done this by trapping the exception when the date value
fails.  You could return NIL with the understanding that NIL indicates
that an invalid date string was passed.

I don't have my VW manual handy, but look up exception handling.

--- WinQwk 2.0 #225
