0

enter image description here

Am I formatting this correctly or is there a different format to use this correctly?

1
  • This looks like a custom condition. Check what is the class name assigned to it and how it's handled in the background
    – Marek Musielak
    Jul 20, 2022 at 6:46

1 Answer 1

1

Sitecore applications and UI dialogs display date & time values in the server time zone. Therefore, you have to convert UTC date/time to server time using the ToServerTime() method from the Sitecore.DateUtil class. Also when saving input from a date/time picker to the database ensure that the selected date/time value is converted to UTC before saving by using the IsoDateToUtcIsoDate() method from the Sitecore.DateUtil class.

More on the date/time best practices in Sitecore please read here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.