Actually my sqldatabase with Entity Framework save DateTime how date type local, but i need in the class model get that value ever like date type UTC. Exists one way from modify the getter method or a datanotation for change value type when i get it ? I thought in :
public class ClassDatetime
{
public DateTime DateLocal { get { return DateLocal.ToUniversalTime(); } set { } }
}
But it's a error by stack overflow exception....