[Seaside] Validating a date from a text

Sebastian Sastre sebastian at flowingconcept.com
Mon Nov 15 17:06:08 UTC 2010


agree. That's valid even when you have to deal with different locale formats.

sebastian



On Nov 15, 2010, at 5:15 AM, Johan Brichau wrote:

> 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
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101115/9d318ca1/attachment-0001.htm


More information about the seaside mailing list