New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Apply Dates that Ignore Timezones

Use the property of the model that should ignore the timezone. Set the value of the property as UTC time by using its ticks. Here is an example:

    public class Person
        public int PersonID { get; set; }
        public string Name { get; set; }
        private DateTime birthDate;
        public DateTime BirthDate
            get { return this.birthDate; }
                this.birthDate = new DateTime(value.Ticks, DateTimeKind.Utc);


To see the example, refer to the project on how to apply dates that ignore timezones when working with the Kendo UI Grid in ASP.NET MVC applications.

See Also

In this article
Not finding the help you need? Improve this article