I converted the date time using TimeZoneInfo in mvc2.
In my controller:
DateTime updatedDate = DateTime.Now;
var timeZone = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(updatedDate, TimeZoneInfo.Local.Id, "India Standard Time").ToString();
I want to assign the value timeZone into
item.updateddate=timeZone;
But it is showing an error. How to assing the values? I am new to this....