470,836 Members | 1,889 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,836 developers. It's quick & easy.

Session.LCID problem

Hi all,
I recently downloaded a calendar that i am trying out for a client. It works
fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following
error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is.
When i do this it works...(horray!) but it also changes the days and the
months to German(awww!) Is there any way to avoid this? PLease help, i got
this pain in my head that won't go away. Any other suggestions?There's not
much in support for the calendar as its free. Its DUcalendar from duware.com
maybe someone else has experienced something similar?

Many thanks in advance


Jul 19 '05 #1
5 3113
What's the value of request("iDate") and is that request.form, querystring,
etc.? Specify that in your code.

Response.write request.FORM("iDate")
response.end
Ray at work

"b_boy" <b_***@b2k.co.uk> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I recently downloaded a calendar that i am trying out for a client. It works fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following
error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is.
When i do this it works...(horray!) but it also changes the days and the
months to German(awww!) Is there any way to avoid this? PLease help, i got
this pain in my head that won't go away. Any other suggestions?There's not
much in support for the calendar as its free. Its DUcalendar from duware.com maybe someone else has experienced something similar?

Many thanks in advance


Jul 19 '05 #2
Without LCID value
16/10/2003

with LCID value for Germany
16.10.2003

hmmm...

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
What's the value of request("iDate") and is that request.form, querystring, etc.? Specify that in your code.

Response.write request.FORM("iDate")
response.end
Ray at work

"b_boy" <b_***@b2k.co.uk> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I recently downloaded a calendar that i am trying out for a client. It

works
fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is. When i do this it works...(horray!) but it also changes the days and the
months to German(awww!) Is there any way to avoid this? PLease help, i got this pain in my head that won't go away. Any other suggestions?There's not much in support for the calendar as its free. Its DUcalendar from

duware.com
maybe someone else has experienced something similar?

Many thanks in advance



Jul 19 '05 #3
Uh, convert it to a string and replace . with / or vice-versa?


"b_boy" <b_***@b2k.co.uk> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I recently downloaded a calendar that i am trying out for a client. It works fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following
error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is.
When i do this it works...(horray!) but it also changes the days and the
months to German(awww!) Is there any way to avoid this? PLease help, i got
this pain in my head that won't go away. Any other suggestions?There's not
much in support for the calendar as its free. Its DUcalendar from duware.com maybe someone else has experienced something similar?

Many thanks in advance


Jul 19 '05 #4
I'm trying...i'm trying, i can convert it to the dd.mm.yyyy format but i
think i need to convert it back to date format otherwise the application
won't work Type mismatch error again! Maybe i'm not doing it right. I'm not
sure there's a date function that will keep the dd.mm.yyyy format in place..
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Uh, convert it to a string and replace . with / or vice-versa?


"b_boy" <b_***@b2k.co.uk> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I recently downloaded a calendar that i am trying out for a client. It

works
fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is. When i do this it works...(horray!) but it also changes the days and the
months to German(awww!) Is there any way to avoid this? PLease help, i got this pain in my head that won't go away. Any other suggestions?There's not much in support for the calendar as its free. Its DUcalendar from

duware.com
maybe someone else has experienced something similar?

Many thanks in advance



Jul 19 '05 #5
hmmm, that's a no then.
"b_boy" <b_***@b2k.co.uk> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
I'm trying...i'm trying, i can convert it to the dd.mm.yyyy format but i
think i need to convert it back to date format otherwise the application
won't work Type mismatch error again! Maybe i'm not doing it right. I'm not sure there's a date function that will keep the dd.mm.yyyy format in place.. "Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Uh, convert it to a string and replace . with / or vice-versa?


"b_boy" <b_***@b2k.co.uk> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I recently downloaded a calendar that i am trying out for a client. It

works
fine when i test it on my machine..however when i test it on the hosts
server it can't handle the date format. when i run it i get the following error
Error:

Type mismatch: 'DateValue'

/calendar/inc_default.asp, line 77

Code:

If Request("iDate") <> "" Then
This is line 77----> iDate = DateValue(Request("iDate"))
Else
iDate = date
End if

I thought the LCID value for Germany which is where the host's server is. When i do this it works...(horray!) but it also changes the days and the months to German(awww!) Is there any way to avoid this? PLease help, i got this pain in my head that won't go away. Any other suggestions?There's not much in support for the calendar as its free. Its DUcalendar from

duware.com
maybe someone else has experienced something similar?

Many thanks in advance




Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Claudio Cezar | last post: by
reply views Thread by A_Dude | last post: by
2 posts views Thread by A_Dude | last post: by
6 posts views Thread by J. Baute | last post: by
reply views Thread by ubi_comp | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.