How to get the local time from the UTC time in a Javascript? RRS feed

  • Question

  • Hi All,

    I have a question regarding the conversion of time zone in a JavaScript. Any help is highly appreciated.

    Requirement: I have a Date & Time field for an entity in MS CRM 2015. I need to validate the date not to accept the future date.

    Implementation: I have performed the validation as per the requirement but at the back end it is giving me the UTC time by which if I select the present day for a particular time (7:00 PM), it is considering the next day.

    Question: How to convert the UTC time to my local time entered in the field so that I can perform the date validation with the local time in a JavaScript?

    Thanks & Regards,


    Thursday, July 30, 2015 2:53 AM