request client date - time

Discussion in 'ASP.NET 2.0' started by wisemx, Oct 19, 2006.

  1. Does anyone know of a way to request the date and time (or just time) from a client computerrequesting a webpage? I am using.net 2.0 with C#.
    It appears that I can only request the date time from the server.


    Example:A client (someone) on the east coastis requesting a page from my server that is being hosted on the west coast.
    • I want to be able to request the time of the from the client and not the server.


    Reason: I want to apply certain themes to the site based on the time of day it is for the visitor.





    I apologize if I should have postedthis under the wrong category.
     
  2. Would you possibly have the user stored in a database?
    This is the way most of us return the local LCID for users, we store their IP info and return their local time that way.
     
  3. No I am not storing the visitors info (well I am storing the ones who will create an account and for those I could collect timezone information). But I would like to do it for the anonymous users.
     

Share This Page