Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts

    format date time

    i am using

    <div class=tdate><%= formatdatetime(todaysdate,1) %></div>

    now the problem is that this is displaying in other languages if the client computer is set in another language.
    how can i force it to always be in English?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    I cannot see how that is possible. This formatdatetime function is running on the server. The output is sent as a string to the client. The client should just display the string and do nothing further with it. The settings of the servermachine will determine how it is displayed. Not the client settings.
    I am the luckiest man in the world

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts
    well i see it in english - my cleint see it in hebrew.
    the server is actually set to hebrew -- how can i force it to display in English?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    setting the content-language attribute?

    <meta http-equiv="Content-Language" content="en-us">
    I am the luckiest man in the world


  •  

    Posting Permissions

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