Last post Jul 13, 2011 06:28 AM by hans_v
Jul 13, 2011 05:40 AM|naveenreddy.gopu|LINK
As per my requirement, capture system regional time zone in my .net code.
senairo: if one user sets is time zone in US format in his Operating system or mechine, and another user sets is time zone as UK format.
now i want to read that time zone in unique format. to read in my .net code
US format: controlpanel\regional and language options\popup will open set the time as united states i.e ... 7/13/2011, mm/dd/yyyy
UK format: controlpanel\regional and language options\popup will open set the time as united states i.e ... 13/7/2011, dd/mm/yyyy
any body can help on this
Jul 13, 2011 05:51 AM|breath2k|LINK
You will first need to get the time from the client machine as the DateTime method will return the server time. Look here first on how to get client time http://forums.asp.net/t/1429858.aspx
Jul 13, 2011 06:11 AM|mehta.rahulit|LINK
this will help u
Jul 13, 2011 06:28 AM|hans_v|LINK
I think you're mixing things up. Regional Settings determine how dates (and numbers) are displayed, the timezone determines in which timezone you're in. As I understand it you want to display dates in the format the user has set on his client?