[Seaside] Validating a date from a text

Johan Brichau johan at inceptive.be
Mon Nov 15 07:15:39 UTC 2010


The best thing to do is to try to create a date object from it. If it fails, it's not a (correct) date.
How you do that depends on the Smalltalk you are using. Take a look at the Date or DateAndTime classes in your image.

cheers
Johan

On 15 Nov 2010, at 07:12, Jeff Gray wrote:

> 
> Is there a method to check a text for being a date? Kind of like isNumber,
> but for dates...
> -- 
> View this message in context: http://forum.world.st/Validating-a-date-from-a-text-tp3042550p3042550.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list