Ask a Question related to ASP Database, Design and Development.
-
martin de vroom #1
Re: Date functions in ASP
ISDATE(...)
or if you want to find the last day of the current month,
set the date to the first, add one month using dateadd, minus 1 day.
cheers
martin.
"Tim Johnson" <timj@smithscity.co.nz> wrote in message
news:070a01c345cc$f9312ba0$a501280a@phx.gbl...> I was wanting to know if there is a function in ASP that
> is able to check if a date is valid or not. I know the
> IsDate function, but its not (I think) quite what I'm
> after.
>
> I have 3 drop down boxes on my page - Month/Day/Year. Is
> there a function that would check "31 Febuary 2003" - and
> tell me that this is an invalid date?
>
> TIA.
martin de vroom Guest
-
VB Date functions into ISO format for SQL server
Hi everyone, I am developing a advertising portal site for villa rentals. In which we require to charge for advertising on a 6 or 12 month basis.... -
Date Interval Functions
On a form I have Date_Start Date_End I have a new Date_Start1 Date_End1 which the use... -
#10743 [Com]: class functions & PHP core functions inconsistently clash ;)
ID: 10743 Comment by: destes at ix dot netcom dot com Reported By: jjones at net-conex dot com Status: Open... -
ASP & Date Functions
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... -
DB2 Date and Holiday Calendar functions.
People, Has anyone had occasion to implement holiday functionality into a DB2 calendar of sorts ? I'm looking for suggested ways of implementing... -
Bob Barrows #2
Re: Date functions in ASP
Tim Johnson wrote:
You can use DateSerial and catch the error when it's given an invalid date.> I was wanting to know if there is a function in ASP that
> is able to check if a date is valid or not. I know the
> IsDate function, but its not (I think) quite what I'm
> after.
>
> I have 3 drop down boxes on my page - Month/Day/Year. Is
> there a function that would check "31 Febuary 2003" - and
> tell me that this is an invalid date?
>
> TIA.
A better strategy is to not allow an invalid date to be selected in the
first place. It's pretty simple to write a sub that reloads the Day dropdown
with the valid days for the month and year combination in the onchange
events of those dropdowns. Give it a try and if you get stuck, ask for help
on a client-side scripting newsgroup such as m.p.scripting.vbscript or
m.p.scripting.jscript (or find a newsgroup with dhtml in its title)
HTH,
Bob Barrows
Bob Barrows Guest
-
Aaron Bertrand [MVP] #3
Re: Date functions in ASP
Please don't multipost. What does this have to do with databases?
"Tim Johnson" <timj@smithscity.co.nz> wrote in message
news:070a01c345cc$f9312ba0$a501280a@phx.gbl...> I was wanting to know if there is a function in ASP that
> is able to check if a date is valid or not. I know the
> IsDate function, but its not (I think) quite what I'm
> after.
>
> I have 3 drop down boxes on my page - Month/Day/Year. Is
> there a function that would check "31 Febuary 2003" - and
> tell me that this is an invalid date?
>
> TIA.
Aaron Bertrand [MVP] Guest
-
Tim Johnson #4
Re: Date functions in ASP
You are exactly right, it has nothing to do with
databases, my intention was not to multi-post but when I
posted the below I didn't realise I was in DB and to my
knowledge there is no way to remove a post?
databases?>-----Original Message-----
>Please don't multipost. What does this have to do withthat>
>
>
>
>
>"Tim Johnson" <timj@smithscity.co.nz> wrote in message
>news:070a01c345cc$f9312ba0$a501280a@phx.gbl...>> I was wanting to know if there is a function in ASPIs>> is able to check if a date is valid or not. I know the
>> IsDate function, but its not (I think) quite what I'm
>> after.
>>
>> I have 3 drop down boxes on my page - Month/Day/Year.and>> there a function that would check "31 Febuary 2003" ->>> tell me that this is an invalid date?
>>
>> TIA.
>
>.
>Tim Johnson Guest



Reply With Quote

