Need Help About LCID Setting

Results 1 to 3 of 3

Thread: Need Help About LCID Setting

  1. #1
    Ion Antono Guest

    Default Need Help About LCID Setting

    I litte bit confused about LCID setting,<BR>I used LCID = 1033 ( united states format) and it should be display with format M/d/yyyy and time with h:mm:ss:tt <BR>example for March 30, 2001 display with LCID = 1033 ( 3/30/2001 11:28:11 AM )<BR>my asp page just like this:<BR>&#060;%@LANGUAGE="VBSCRIPT" LCID=1037%&#062;<BR>&#060;% txtDate = now()<BR>response.write "Date : " & txtDate %&#062;<BR><BR>the output is always : 30/03/2001 11:28:11 (Indonesian Format)<BR><BR>and when i changed to another LCID format , the output is always the same : 30/03/2001 11:28:11 not 3/30/2001 11:28:11 AM<BR><BR>Why this happened ? and what the solution for this problem ?<BR><BR>thanks for your help.....<BR>

  2. #2
    Join Date
    Dec 1969

    Default Wow! You found a bug!

    A BUG!<BR><BR>I am using Win98 and PWS, and *INDEED* doing <BR><BR>&#060;%@ LCID=2057 %&#062;<BR><BR>(UK English, I don&#039;t have 1037 on my machine) does *NOT* change the setting from USEnglish!<BR><BR>The *really* strange thing is that doing <BR><BR>&#060;%<BR>Response.Write Session.LCID<BR>%&#062;<BR><BR>*does* report that it is set to 2057.<BR><BR>***HOWEVER***<BR><BR>There&#039;s an easy fix!<BR><BR>&#060;%<BR>Session.LCID = 1037<BR>...<BR>%&#062;<BR><BR>should work for you!<BR><BR>This is something that *used* to work on IIS 4.0, so I don&#039;t know if it&#039;s a bug in PWS and/or if the bug appears in IIS 5.0, as well.<BR><BR>Anyway, try the &#060;% Session.LCID = xxxx %&#062; and see if that doesn&#039;t fix you up!<BR><BR>Thanks for finding this!<BR><BR>

  3. #3
    Ion Antono Guest

    Default RE: Wow! You found a bug!

    I tried to use session.lcid = 1033 like you said<BR>but it didn&#039;t change anything <BR><BR>the output is always dd/mm/yyyy hh:mm:ss exp. 31/03/2001<BR>not mm/dd/yyyy exp. 03/31/2001<BR><BR>but when i diplayed<BR>&#060;%<BR>response.write "LCID : " & session.lcid<BR>...<BR>%&#062;<BR>the output is correct , it displayed LCID : 1033 <BR><BR>and i used IIS 5.0 for doing this<BR><BR>Do you have another solution for this???<BR><BR>thanks for help,

Posting Permissions

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