Session.LCID problem

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 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






    b_boy Guest

  2. Similar Questions and Discussions

    1. How to set LCID permanently in MX?
      Working usually in vb/asp I'd like to force the script language header to include the LCID as per this as most of my work involves dates. ...
    2. Session.Lcid question
      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...
    3. Session.Lcid
      Trying to locate the list of valid lcid's on MS's site and googled. Ive toiled long and hard, but alas I cannot locate the information. (previous...
    4. Session.LCID does not work
      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...
    5. LCID Problem.
      This has just started. I don't recal installing any updates or security fixes lately. But I am getting a script debugger notification just...
  3. #2

    Default Re: Session.LCID problem

    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_boy@b2k.co.uk> wrote in message
    news:OMMQNvBlDHA.1672@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
    >
    >
    >
    >
    >
    >

    Ray at Guest

  4. #3

    Default Re: Session.LCID problem

    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:OwdD1zBlDHA.1004@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_boy@b2k.co.uk> wrote in message
    > news:OMMQNvBlDHA.1672@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
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >

    b_boy Guest

  5. #4

    Default Re: Session.LCID problem

    Uh, convert it to a string and replace . with / or vice-versa?




    "b_boy" <b_boy@b2k.co.uk> wrote in message
    news:OMMQNvBlDHA.1672@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
    >
    >
    >
    >
    >
    >

    Aaron Bertrand - MVP Guest

  6. #5

    Default Re: Session.LCID problem

    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" <aaron@TRASHaspfaq.com> wrote in message
    news:%23CnFCXClDHA.1656@tk2msftngp13.phx.gbl...
    > Uh, convert it to a string and replace . with / or vice-versa?
    >
    >
    >
    >
    > "b_boy" <b_boy@b2k.co.uk> wrote in message
    > news:OMMQNvBlDHA.1672@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
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >

    b_boy Guest

  7. #6

    Default Re: Session.LCID problem

    hmmm, that's a no then.
    "b_boy" <b_boy@b2k.co.uk> wrote in message
    news:O$FQ3IDlDHA.1708@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" <aaron@TRASHaspfaq.com> wrote in message
    > news:%23CnFCXClDHA.1656@tk2msftngp13.phx.gbl...
    > > Uh, convert it to a string and replace . with / or vice-versa?
    > >
    > >
    > >
    > >
    > > "b_boy" <b_boy@b2k.co.uk> wrote in message
    > > news:OMMQNvBlDHA.1672@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
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    b_boy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139