I have a requirement in my application where we have to perform certain activities based on the time (that too local to the client)… For example – if the client is in US and the local time at the client is 20:00 then do something…
So far to simplify we are taking just one timezone for each country.. Any pointers how can I check if the time is 20:00 at the client based on the timezone??
Assuming you’re using .NET 3.5 or higher, you’ll want the
TimeZoneInfofor the client. Then you can use:(Of course, that would only work at the exact instant of 20:00. You’ll want to adjust it according to your real requirements.)