Ask a Question related to ASP, Design and Development.
-
Hebar Tiltwobler #1
IS string date greater than or equal to a SQL server datetime record?
I need to figure out if the current date (passed in as a string) is equal
to or greater then a field in my database in the format of- M/D/YYYY AND if
the date is less then another field in my database.
"... WHERE '" & cdate(request("date")) & "' >= CONVERT(varchar,
(datePart(M,appointmentStart)/datePart(D,appointmentStart)/datePart(YYYY,app
ointmentStart)), 103)) AND "&_
"'" & cdate(request("date")) & "' <= (CONVERT(varchar,
(datePart(M,appointmentEnd)/datePart(D,appointmentEnd)/datePart(YYYY,appoint
mentEnd)), 103)) "
Anyone know why my SQL statement above is not working correctly?
PS- I've always wondered why it less thEn instead of less thAn ..? Doesn't
thAn make more sense?
TIA
Hebar Tiltwobler Guest
-
Greater than/Equal To Font Problem
I just recently completed a fairly large brochure. On quite a few of the tech pages I used the special char's ? and ?. In all cased they show up in... -
to check to date must be greater or equal from date
Hi All, I code my date selection like this : <select name="day" class="formData"> <cfloop index="d" from="1" to="31" step="+1"> <option... -
query with greater than date
how can i make a query which recieves dates greater or equal to todays date? I tried this sql statement, but it included some dates from 2004 and... -
#26071 [Bgs]: Number 0 is equal to any string.
ID: 26071 User updated by: flood87 at hot dot ee Reported By: flood87 at hot dot ee Status: Bogus Bug Type: ... -
#26071 [NEW]: Number 0 is equal to any string.
From: flood87 at hot dot ee Operating system: Windows XP PHP version: 5.0.0b1 (beta1) PHP Bug Type: Unknown/Other Function... -
Ray at #2
Re: IS string date greater than or equal to a SQL server datetime record?
"Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
news:%23juETYlmDHA.2140@TK2MSFTNGP09.phx.gbl...
Where are you seeing less thEn? I can see myself saying that in>
> PS- I've always wondered why it less thEn instead of less thAn ..? Doesn't
> thAn make more sense?
conversation. "We can each take 50%. If you want less, then give me more."
Ray at work
Ray at Guest
-
Bob Barrows #3
Re: IS string date greater than or equal to a SQL server datetime record?
Hebar Tiltwobler wrote:
Dates are not stored with any format. It is up to the client application to> I need to figure out if the current date (passed in as a string) is
> equal to or greater then a field in my database in the format of-
> M/D/YYYY AND if the date is less then another field in my database.
apply formatting. I suspect your database is SQL Server (why are you making
us guess? :-) ), so if you look up Using Date And Time Data in SQL Books
Online, you will find your answer.
I always say/write "less than". I don't know why you think "less then" is> Anyone know why my SQL statement above is not working correctly?
>
> PS- I've always wondered why it less thEn instead of less thAn ..?
> Doesn't thAn make more sense?
>
the accepted form.
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Hebar Tiltwobler #4
Re: IS string date greater than or equal to a SQL server datetime record?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23hb2malmDHA.3612@TK2MSFTNGP11.phx.gbl...Doesn't>
> "Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
> news:%23juETYlmDHA.2140@TK2MSFTNGP09.phx.gbl...
>> >
> > PS- I've always wondered why it less thEn instead of less thAn ..?more.">> > thAn make more sense?
> Where are you seeing less thEn? I can see myself saying that in
> conversation. "We can each take 50%. If you want less, then give meWhoops.. was thinking of VBscript.. > then..>
> Ray at work
>
>
I'm wondering why it is not less than instead of then. Isn't "than"
comparitive and "then" a reference to time?
Hebar Tiltwobler Guest
-
Hebar Tiltwobler #5
Re: IS string date greater than or equal to a SQL server datetime record?
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:%23gbRhdlmDHA.2080@TK2MSFTNGP10.phx.gbl...to> Hebar Tiltwobler wrote:>> > I need to figure out if the current date (passed in as a string) is
> > equal to or greater then a field in my database in the format of-
> > M/D/YYYY AND if the date is less then another field in my database.
> Dates are not stored with any format. It is up to the client applicationmaking> apply formatting. I suspect your database is SQL Server (why are you> us guess? :-) ), so if you look up Using Date And Time Data in SQL Books
> Online, you will find your answer.
>> I always say/write "less than". I don't know why you think "less then" is> > Anyone know why my SQL statement above is not working correctly?
> >
> > PS- I've always wondered why it less thEn instead of less thAn ..?
> > Doesn't thAn make more sense?
> >
> the accepted form.
>
> HTH,
> Bob Barrows
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
to> Dates are not stored with any format. It is up to the client applicationCorrect> apply formatting.
Subject line says SQL Server>I suspect your database is SQL Server (why are you making
> us guess? :-) ),
>so if you look up Using Date And Time Data in SQL Books
> Online, you will find your answer.
Thank you.
Hebar Tiltwobler Guest
-
Bob Lehmann #6
Re: IS string date greater than or equal to a SQL server datetime record?
Less than is correct. Did you hear "then" or see "then"? Maybe you ran into
a regional accent.
Gotta go now, the cah's erl needs to be changed.
Bob Lehmann
"Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
news:uo9dTrlmDHA.2964@tk2msftngp13.phx.gbl...>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:%23hb2malmDHA.3612@TK2MSFTNGP11.phx.gbl...> Doesn't> >
> > "Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
> > news:%23juETYlmDHA.2140@TK2MSFTNGP09.phx.gbl...
> >> > >
> > > PS- I've always wondered why it less thEn instead of less thAn ..?> more."> >> > > thAn make more sense?
> > Where are you seeing less thEn? I can see myself saying that in
> > conversation. "We can each take 50%. If you want less, then give me>> >
> > Ray at work
> >
> >
> Whoops.. was thinking of VBscript.. > then..
>
> I'm wondering why it is not less than instead of then. Isn't "than"
> comparitive and "then" a reference to time?
>
>
>
Bob Lehmann Guest
-
Ray at #7
Re: IS string date greater than or equal to a SQL server datetime record?
"Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
news:uo9dTrlmDHA.2964@tk2msftngp13.phx.gbl...[url]www.dictionary.com[/url]>> more."> > Where are you seeing less thEn? I can see myself saying that in
> > conversation. "We can each take 50%. If you want less, then give me>> >
> > Ray at work
> >
> >
> Whoops.. was thinking of VBscript.. > then..
>
> I'm wondering why it is not less than instead of then. Isn't "than"
> comparitive and "then" a reference to time?
>
just kidding
If 5 is greater than 4 then do this
That's how VBS is, although I wouldn't be surprised if things were messed up
grammatically from time to time. I don't know too many programmers who are
expert grammarians. I try though! I don't use "a lot" or say things like,
"If someone has a cat, they are cool." Who's they? It's he, damn it! And
enough with all that "he or she" or "s/he" nonsense!
Ray at work
>
>
Ray at Guest
-
Hebar Tiltwobler #8
Re: IS string date greater than or equal to a SQL server datetime record?
"Bob Lehmann" <none> wrote in message
news:eFFaW0lmDHA.1072@TK2MSFTNGP09.phx.gbl...into> Less than is correct. Did you hear "then" or see "then"? Maybe you ran> a regional accent.
>
> Gotta go now, the cah's erl needs to be changed.
>
> Bob Lehmann
>
> "Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
> news:uo9dTrlmDHA.2964@tk2msftngp13.phx.gbl...>> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:%23hb2malmDHA.3612@TK2MSFTNGP11.phx.gbl...> > Doesn't> > >
> > > "Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
> > > news:%23juETYlmDHA.2140@TK2MSFTNGP09.phx.gbl...
> > >
> > > >
> > > > PS- I've always wondered why it less thEn instead of less thAn ..?> > more."> > > > thAn make more sense?
> > >
> > > Where are you seeing less thEn? I can see myself saying that in
> > > conversation. "We can each take 50%. If you want less, then give me> >> > >
> > > Ray at work
> > >
> > >
> > Whoops.. was thinking of VBscript.. > then..
> >
> > I'm wondering why it is not less than instead of then. Isn't "than"
> > comparitive and "then" a reference to time?
> >
> >
> >
>
I was thinking (not really) of "less than" or "greater than" (<>) and
"then"... what I'm really trynig to say is that I woke up too early this
morning.
Hebar Tiltwobler Guest
-
Hebar Tiltwobler #9
Re: IS string date greater than or equal to a SQL server datetime record?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23wZLj2lmDHA.2436@TK2MSFTNGP09.phx.gbl...up>
> "Hebar Tiltwobler" <ready@justfooledyou-notemail.com> wrote in message
> news:uo9dTrlmDHA.2964@tk2msftngp13.phx.gbl...>> >> > more."> > > Where are you seeing less thEn? I can see myself saying that in
> > > conversation. "We can each take 50%. If you want less, then give me> >> > >
> > > Ray at work
> > >
> > >
> > Whoops.. was thinking of VBscript.. > then..
> >
> > I'm wondering why it is not less than instead of then. Isn't "than"
> > comparitive and "then" a reference to time?
> >
> [url]www.dictionary.com[/url]
> just kidding
>
> If 5 is greater than 4 then do this
>
> That's how VBS is, although I wouldn't be surprised if things were messedare> grammatically from time to time. I don't know too many programmers wholike,> expert grammarians. I try though! I don't use "a lot" or say thingsAnd> "If someone has a cat, they are cool." Who's they? It's he, damn it!Tomaytoe tomot-o, potatoe, now that I've invented the internet I'm going> enough with all that "he or she" or "s/he" nonsense!
>
> Ray at work
>>> >
> >
>
back to bed.
Hebar Tiltwobler Guest
-
Bob Barrows #10
Re: IS string date greater than or equal to a SQL server datetime record?
Hebar Tiltwobler wrote:
Oops. Sorry about that.>>> I suspect your database is SQL Server (why are you making
>> us guess? :-) ),
Bob
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest



Reply With Quote

