Forum Discussion

mattiarusso's avatar
mattiarusso
Icon for Advocate I rankAdvocate I
9 years ago
Solved

CRM API REST date time zone UTC issue

Hello Everybody, I have a problem with the DateTimeZone in Power BI Service. I retrieved a data/time field by CRM Online in Power BI Desktop by using CRM API REST. In Power BI Desktop the data/time...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi mattiarusso,

     

    According to your description, you want to modify the utc timezone to your local timezone, right?

    If this is a case, you can use DateTimeZone.SwitchZone function or DateTime.AddZone function to achieve your requirement.

     

    Reference links:

    DateTimeZone.SwitchZone

    DateTime.AddZone

     

    Regards,

    Xiaoxin Sheng