How to take current time from Kentico Site Time ?

Chandra Bhattarai asked on May 26, 2022 11:47

I set up the time in 'Site time zone' inside setting in CMS. I am using Kentico 13 core (13.68). How can i get the exact time on C# according to the time zone i set for specific site. I am using multisite.

This method is only returning time zone instread of exact time of that zone string value = SettingsKeyInfoProvider.GetValue(SiteContext.CurrentSiteName + ".CMSSiteTimeZone");

        But i am looking for the time of that time zone. 

   Please, sign in to be able to submit a new answer.