Force client's date setting

Results 1 to 3 of 3

Thread: Force client's date setting

  1. #1
    Lynn Maharet Guest

    Default Force client's date setting

    Hi all,<BR><BR>I have this major problem..<BR>I have this form upon submitting I&#039ll check the dates client side. The date captured is in dd/mm/yy but the client&#039s setting is in MM/d/yy.<BR><BR>what i did is to Cdate the value upon comparing. What i found out is that if the client&#039s setting is in m/d/yy or mm/d/yy or m/dd/yy as long as it is in month first then day then year, it will actually append the day to the year.<BR><BR>ex. mydate =15/12/00 in dd/mm/yy<BR>client date setting is in m/d/yy<BR>when I year(mydate) it actually gives me 2015<BR>it takes the first 2 digit of the year and append the day behind.<BR><BR>if client date setting is dd/mm/yy or in that sequence there is no problem.<BR><BR>so is there any way for me to force the client&#039s setting to dd/mm/yy? Please help...i&#039m very grateful..;)

  2. #2
    Eddie Campbell Guest

    Default RE: Force client's date setting

    Try putting Session.LCID=2057 at the top of your ASP page. This should force the client to use dd/mm/yy for dates.

  3. #3
    Lynn Mahare Guest

    Default RE: Force client's date setting

    But Eddie, the checking is done at client&#039s side so it has no affect. what u mean is putting Session.LCID=2057 within &#060;% %&#062; right? It doesn&#039t works

Posting Permissions

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