Dataverse – Convert UTC Time to User Timezone in Plugin


This article provides a quick tip on converting UTC date to the user's timezone settings in a plugin. The author explains how to retrieve the user's timezone from the "usersettings" table in Dataverse using a SQL query. They then provide code that uses an extension method to convert the UTC time to the user's timezone using the retrieved timezone value. The code also sets the primary field of a table using the converted time. The author includes a demo result and mentions the benefits of using extension methods.


Article 11m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time