Ok... then I will continue to use the TRY/CATCH.
Regards,
Neil
>Hi, Neil-
>
>> I just need a way to make certain that the date converts from character to DateTime without throwing an error. I could wrap the conversion-to-date in a try/ catch construct but I was wondering if there was a better way.
>
>Well, better, how? This is exactly what a Try/Catch would be good for, IMO. You can catch the specific error that the string isn't a valid date. I don't see how else you'd do it unless you go through some convoluted string parsing and analyzing.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only