473,721 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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..howeve r 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(Reque st("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?The re'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 3239
What's the value of request("iDate" ) and is that request.form, querystring,
etc.? Specify that in your code.

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

"b_boy" <b_***@b2k.co.u k> wrote in message
news:OM******** ******@TK2MSFTN GP09.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..howeve r 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(Reque st("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?The re'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******** ******@TK2MSFTN GP09.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("i Date")
response.end
Ray at work

"b_boy" <b_***@b2k.co.u k> wrote in message
news:OM******** ******@TK2MSFTN GP09.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..howeve r 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(Reque st("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?The re'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.u k> wrote in message
news:OM******** ******@TK2MSFTN GP09.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..howeve r 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(Reque st("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?The re'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***@TRASHasp faq.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Uh, convert it to a string and replace . with / or vice-versa?


"b_boy" <b_***@b2k.co.u k> wrote in message
news:OM******** ******@TK2MSFTN GP09.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..howeve r 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(Reque st("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?The re'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.u k> wrote in message
news:O$******** ******@TK2MSFTN GP12.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***@TRASHasp faq.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Uh, convert it to a string and replace . with / or vice-versa?


"b_boy" <b_***@b2k.co.u k> wrote in message
news:OM******** ******@TK2MSFTN GP09.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..howeve r 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(Reque st("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?The re'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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2344
by: Claudio Cezar | last post by:
I live in Brazil and i am trying to set my application to work with american date format. The problem is, even when i set the LCID property at the beginning of my code, it always returns the date in brazilian date format. Example: <% @Language=VBSCript %> <% Session.LCID=1033 %> <% Response.write (now & "<BR>" & Session.LCID) %>
0
1285
by: A_Dude | last post by:
Hi all, I've recently installed a calendar that I downloaded but I'm having a bit of a problem with the date settings. I thought setting the LCID value would help which it does but brings another problem. The site is being hosted on a server in Germany, and when I enter the LCID value for Germany it works but also changes the days and months to German. Any way to change that to English? I tried using the LCID values for US or UK but it...
2
1941
by: A_Dude | last post by:
I posted this but got no response so hey...why not try again...I'd like to know if it is just not possible or am I missing something. I'd appreciate a pointer...article , something to help me relieve my pain...I may not be asking the question right, please let me know if what I need is not clear.. Hi all, I've recently installed a calendar that I downloaded but I'm having a bit of a problem with the date settings. I thought setting the...
0
3235
by: David Patow | last post by:
Can anyone explain why neither ASP Session.LCID nor VBScript SetLocale() effect the locale of a VB6-based COM object that is instantiated via Server.CreateObject()? If I set Session.LCID, then create a VB-based object, the object still seems to use the system LCID for formatting dates & numbers. Using FormatDateTime() within the VBScript of the ASP *does* work -- It's just that created objects don't seem to inherit the locale.
0
1431
by: Darren | last post by:
I used the following code on a server; <% ReturnDateTime 1033, "English (US)" ReturnDateTime 2057, "English (UK)" ReturnDateTime 3081, "English (Australia)" ReturnDateTime 1031, "German" Sub ReturnDateTime(locale, description) Session.LCID = locale
6
8589
by: J. Baute | last post by:
I'm doing some tests to see if the Session.LCID can be used to easily change a user-dependant locale for number & date/time formatting in ASP. As far as I get the theory this should work, but I'm concerded that there might be some issues when serverside regional settings are changed. I'm having this one case where I'm having something odd already. This is my testcode: <% session.lcid = 2067 ' nl-be
8
4847
by: Rob | last post by:
Hi all, Is it possible to change the Session.LCID in a hyperlink? My problem is I'm calling a Date from a database to use as a querystring in the hyperlink but I also need to display the date as output from the hyperlink. I need to have to querystring in Session.LCID = 1033 and the display date in Session.LCID = 2057. Coding :-
0
1133
by: ubi_comp | last post by:
Hi, I have a windows 2003 server IIS6 machine in development environment. I set Session.Lcid in aspx Page1 and move to aspx Page2 and use Session.Lcid value that I set in the Page1 without any problem. Recently I started preparing a new machine with same configuration but now
0
3613
by: Just4U | last post by:
Hello, My config : Windows 2003 x64 (US VERSION) + sp2, IIS 6 All regional settings to French (even for default user) In my ASP pages dates are in the good format (french:dd/mm/yyyy), but impossible to have US date format when i set the Session.LCID=1033 I did a simple test: <% ReturnDateTime 1033, "English (US)" ReturnDateTime 1036, "French"
0
8738
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9086
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8028
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6678
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2599
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2146
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.