Ask a Question related to ASP Database, Design and Development.
-
Clive Moss #1
Dates again
Hello all
I'm having trouble getting iis to understand the UK format of dates
ASP off a MS Access database
I have the following query:
objRS.Open "Select CheckInitial.ID, CheckInitial.TagNo,
CheckInitial.TagDate, CheckInitial.PassFail, CheckInitial.IbiD, Users.CoName
From CheckInitial Inner Join Users on CheckInitial.IbId = Users.ID Where
(CheckInitial.TagDate Between #" & varFirst & "# And #" & varLast & "#) And
CheckInitial.IbId = " & ib & " Order by TagDate Desc"
varFirst and varLast are pulled from a form input
I get wrong results because the input is read as if it is US style dates not
dd/mm/yy
I have set the Session.LCID to 2057. I have played around with CDate in
every combination possible.
The problem is the same on my local server (set to US settings) and the host
server (set to UK).
I appreciate that this type of question must have been asked many times but
I could not find your faq page on Google
TIA
Clive
Clive Moss Guest
-
Between Dates
I am trying to query an online access database and return records that have occurred between dates. I am using another query which does work to... -
Dates & SQL
In my CF form I have created a date object using #DateFormat(Now(),"MM/DD/YY")# which displays the date as: 07/29/05. When the date is inserted... -
ASP/VBS Dates Between Dates
I'm trying to filter records depending on 2 dates requested from the querystring MMColParam1 (startdate) and MMColParam2 (enddate), i.e. a list... -
Dates
Thanks to all those who replied. I ended up doing some research myself and found a good date module at... -
Help with Dates please
Hi, In a SQL table I have a field named departure and a date in inserted in it. What is the exact syntax to get only records with a future date... -
Bob Barrows #2
Re: Dates again
Clive Moss wrote:
[url]www.aspfaq.com[/url]> Hello all
> I'm having trouble getting iis to understand the UK format of dates
>
> ASP off a MS Access database
>
> I have the following query:
> objRS.Open "Select CheckInitial.ID, CheckInitial.TagNo,
> CheckInitial.TagDate, CheckInitial.PassFail, CheckInitial.IbiD,
> Users.CoName From CheckInitial Inner Join Users on CheckInitial.IbId
> = Users.ID Where (CheckInitial.TagDate Between #" & varFirst & "# And
> #" & varLast & "#) And CheckInitial.IbId = " & ib & " Order by
> TagDate Desc"
>
> varFirst and varLast are pulled from a form input
>
> I get wrong results because the input is read as if it is US style
> dates not dd/mm/yy
>
> I have set the Session.LCID to 2057. I have played around with CDate
> in every combination possible.
> The problem is the same on my local server (set to US settings) and
> the host server (set to UK).
>
> I appreciate that this type of question must have been asked many
> times but I could not find your faq page on Google
>
> TIA
>
> Clive
in particular:
[url]http://www.aspfaq.com/show.asp?id=2260[/url]
and
[url]http://www.aspfaq.com/show.asp?id=2040[/url]
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Clive Moss #3
Re: Dates again
"<snip>Thanks, Bob ,but that site is down at present - Probably why I was getting>> > TIA
> >
> > Clive
> [url]www.aspfaq.com[/url]
>
> in particular:
> [url]http://www.aspfaq.com/show.asp?id=2260[/url]
> and
> [url]http://www.aspfaq.com/show.asp?id=2040[/url]
>
> HTH,
> Bob Barrows
> --
nowhere trying to get to it. I'll try later
Thanks again
Clive
Clive Moss Guest
-
Bob Barrows #4
Re: Dates again
Clive Moss wrote:
Really? It's working fine for me ...> "<snip>> Thanks, Bob ,but that site is down at present - Probably why I was>>>>> TIA
>>>
>>> Clive
>> [url]www.aspfaq.com[/url]
>>
>> in particular:
>> [url]http://www.aspfaq.com/show.asp?id=2260[/url]
>> and
>> [url]http://www.aspfaq.com/show.asp?id=2040[/url]
>>
>> HTH,
>> Bob Barrows
>> --
> getting nowhere trying to get to it. I'll try later
>
> Thanks again
> Clive
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Brynn #5
Re: Dates again
'// To US to UK / UK to US
Function dateSwitch(yourDate)
Dim dateArray: dateArray=Split(yourDate, "/")
dateSwitch = dateAray(1) & "/" & dateArray(0) & "/" &
dateArray(2)
End Function
On Tue, 13 Jan 2004 19:36:54 GMT, "Clive Moss"
<clive@REMOVEinstant-image.co.uk> wrote:
I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!>Hello all
>I'm having trouble getting iis to understand the UK format of dates
>
>ASP off a MS Access database
>
>I have the following query:
>objRS.Open "Select CheckInitial.ID, CheckInitial.TagNo,
>CheckInitial.TagDate, CheckInitial.PassFail, CheckInitial.IbiD, Users.CoName
>From CheckInitial Inner Join Users on CheckInitial.IbId = Users.ID Where
>(CheckInitial.TagDate Between #" & varFirst & "# And #" & varLast & "#) And
>CheckInitial.IbId = " & ib & " Order by TagDate Desc"
>
>varFirst and varLast are pulled from a form input
>
>I get wrong results because the input is read as if it is US style dates not
>dd/mm/yy
>
>I have set the Session.LCID to 2057. I have played around with CDate in
>every combination possible.
>The problem is the same on my local server (set to US settings) and the host
>server (set to UK).
>
>I appreciate that this type of question must have been asked many times but
>I could not find your faq page on Google
>
>TIA
>
>Clive
>
>
Brynn
[url]www.coolpier.com[/url]
Brynn Guest



Reply With Quote

