Basically there are two approaches-
1. Client side approach
With this approach you can take help of some client script like javascript to get the date and time on the client system. Something like following-
var currentdate = new Date();
Check following link-
JavaScript Dates[
^]
Ok. Now what if I have wrong time set in my computer? Wrong result to expect. That's where we need the second option.
2. Convert the time to local
Well, you can do this with your C# code.
Example:
DateTime dateValue = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"));
Hope, it helps :)
Note: There are ways to do this in client side too. but these 2 options should help your cause. Please let me know in case I am missing something here.