Go Back   CodingForums.com > :: Computing & Sciences > Computer/PC discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-08-2002, 02:48 PM   PM User | #1
pthompson2002
New Coder

 
Join Date: Aug 2002
Location: Ipswich
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
pthompson2002 is an unknown quantity at this point
problems with displaying date

I have a problem, hopefully you can help...

I am calling the following function as part of an SQL statement:
Code:
WHERE b.End_Date > to_date('" & DateAdd("d", -1, formatDateTime(Now, vbLongDate)) & "', 'mm/dd/yyyy')
It appears to crash my machine and return the following error

Quote:
Microsoft VBScript runtime (0x800A000D) Type mismatch: '[string: "Tuesday, October 08,"]'
However, on another machine it works fine. I believe this is something to do with how the PC handles the date, however, on the machine that runs fine and my machine all regional setting for Date display are the same. I'm stumped.

I would like the date to be read "08 October 2002" it does this on the correct machine using a simple ASP test, but on my machine it displays "Tuesday, October 08, 2002".

Anyone got any ideas?
pthompson2002 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:17 AM.


Advertisement
Log in to turn off these ads.