If you do some string manipulation with your date, you can still use IsDate.
How are you getting your date? Will you know if it will always be
Day-Month-Year? If so, you can re-arrange the string and test it. Like,
IsDate will return true for "Feb 28 2003" (with my US regional settings).
So, just rearrange your string and use IsDate still.
Ray at home
"Tim" <ti**@smithscity.co.nz> wrote in message
news:07****************************@phx.gbl...
Hi, I was wondering if there was a function in ASP that
checks a date to see if it is valid or not. I am aware
of the IsDate function, but I think its not what I'm
looking for. I want to run the following date through a
function and have the function tell me that it is
invalid: 31-Feb-2003 (cos there is not 31 days in Feb).
Does anyone know of a function to help me? Or a good way
to make my own function?
TIA>