Session.LCID problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • b_boy

    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






  • Ray at

    #2
    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("i Date")
    response.end


    Ray at work

    "b_boy" <b_boy@b2k.co.u k> wrote in message
    news:OMMQNvBlDH A.1672@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi all,
    > I recently downloaded a calendar that i am trying out for a client. It[/color]
    works[color=blue]
    > 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[/color]
    duware.com[color=blue]
    > maybe someone else has experienced something similar?
    >
    > Many thanks in advance
    >
    >
    >
    >
    >
    >[/color]


    Comment

    • b_boy

      #3
      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:OwdD1zBlDH A.1004@TK2MSFTN GP09.phx.gbl...[color=blue]
      > What's the value of request("iDate" ) and is that request.form,[/color]
      querystring,[color=blue]
      > etc.? Specify that in your code.
      >
      > Response.write request.FORM("i Date")
      > response.end
      >
      >
      > Ray at work
      >
      > "b_boy" <b_boy@b2k.co.u k> wrote in message
      > news:OMMQNvBlDH A.1672@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Hi all,
      > > I recently downloaded a calendar that i am trying out for a client. It[/color]
      > works[color=green]
      > > 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[/color][/color]
      following[color=blue][color=green]
      > > 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[/color][/color]
      is.[color=blue][color=green]
      > > 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[/color][/color]
      got[color=blue][color=green]
      > > this pain in my head that won't go away. Any other suggestions?The re's[/color][/color]
      not[color=blue][color=green]
      > > much in support for the calendar as its free. Its DUcalendar from[/color]
      > duware.com[color=green]
      > > maybe someone else has experienced something similar?
      > >
      > > Many thanks in advance
      > >
      > >
      > >
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Aaron Bertrand - MVP

        #4
        Re: Session.LCID problem

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




        "b_boy" <b_boy@b2k.co.u k> wrote in message
        news:OMMQNvBlDH A.1672@TK2MSFTN GP09.phx.gbl...[color=blue]
        > Hi all,
        > I recently downloaded a calendar that i am trying out for a client. It[/color]
        works[color=blue]
        > 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[/color]
        duware.com[color=blue]
        > maybe someone else has experienced something similar?
        >
        > Many thanks in advance
        >
        >
        >
        >
        >
        >[/color]


        Comment

        • b_boy

          #5
          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@TRASHasp faq.com> wrote in message
          news:%23CnFCXCl DHA.1656@tk2msf tngp13.phx.gbl. ..[color=blue]
          > Uh, convert it to a string and replace . with / or vice-versa?
          >
          >
          >
          >
          > "b_boy" <b_boy@b2k.co.u k> wrote in message
          > news:OMMQNvBlDH A.1672@TK2MSFTN GP09.phx.gbl...[color=green]
          > > Hi all,
          > > I recently downloaded a calendar that i am trying out for a client. It[/color]
          > works[color=green]
          > > 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[/color][/color]
          following[color=blue][color=green]
          > > 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[/color][/color]
          is.[color=blue][color=green]
          > > 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[/color][/color]
          got[color=blue][color=green]
          > > this pain in my head that won't go away. Any other suggestions?The re's[/color][/color]
          not[color=blue][color=green]
          > > much in support for the calendar as its free. Its DUcalendar from[/color]
          > duware.com[color=green]
          > > maybe someone else has experienced something similar?
          > >
          > > Many thanks in advance
          > >
          > >
          > >
          > >
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • b_boy

            #6
            Re: Session.LCID problem

            hmmm, that's a no then.
            "b_boy" <b_boy@b2k.co.u k> wrote in message
            news:O$FQ3IDlDH A.1708@TK2MSFTN GP12.phx.gbl...[color=blue]
            > 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[/color]
            not[color=blue]
            > sure there's a date function that will keep the dd.mm.yyyy format in[/color]
            place..[color=blue]
            > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
            > news:%23CnFCXCl DHA.1656@tk2msf tngp13.phx.gbl. ..[color=green]
            > > Uh, convert it to a string and replace . with / or vice-versa?
            > >
            > >
            > >
            > >
            > > "b_boy" <b_boy@b2k.co.u k> wrote in message
            > > news:OMMQNvBlDH A.1672@TK2MSFTN GP09.phx.gbl...[color=darkred]
            > > > Hi all,
            > > > I recently downloaded a calendar that i am trying out for a client. It[/color]
            > > works[color=darkred]
            > > > 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[/color][/color]
            > following[color=green][color=darkred]
            > > > 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[/color][/color]
            > is.[color=green][color=darkred]
            > > > When i do this it works...(horray !) but it also changes the days and[/color][/color][/color]
            the[color=blue][color=green][color=darkred]
            > > > months to German(awww!) Is there any way to avoid this? PLease help, i[/color][/color]
            > got[color=green][color=darkred]
            > > > this pain in my head that won't go away. Any other suggestions?The re's[/color][/color]
            > not[color=green][color=darkred]
            > > > much in support for the calendar as its free. Its DUcalendar from[/color]
            > > duware.com[color=darkred]
            > > > maybe someone else has experienced something similar?
            > > >
            > > > Many thanks in advance
            > > >
            > > >
            > > >
            > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...