Jul 12, 2007 01:59 PM|cheetahtech|LINK
Lets say I have a server in the United States and the Clients are in Great Britain.
I would like to display on the webpage, their current local time but when I access the website I want to display my local time here in the United States.
I am able to access their culture info but I can't get any further. I have played with all the culture info but nothing yet.
I have the following code.
Below is how I displayed it but nothing seems to advance the time 5 hours, and I can't just add five hours because of the Daylight savings time is now different so how can I just access the Clients clock on the Computer.
Label1.Text = TUS.Now
Label2.Text = TUS.IsDaylightSavingTime()
Label3.Text = TUS1.Now
Label4.Text = TUS2.Now
label6.text = culture.DateTimeFormat.ShortDatePattern
label7.text = usculture.DateTimeFormat.ShortDatePattern
Label8.Text = UKCulture.DateTimeFormat.ShortDatePattern
Label9.Text = TUS1.ToLocalTime
Label10.Text = TUS1.ToOADate
Label11.Text = TUS1.ToUniversalTime
Label12.Text = TUS.UtcNow
Label13.Text = TUS.ToFileTime
Label14.Text = USCulture.EnglishName
Label15.Text = UKCulture.EnglishName
Label16.Text = Request.UserLanguages(0)
Label17.Text = culture.UseUserOverride
Label18.Text = culture.CompareInfo.Name
Label19.Text = culture.EnglishName