function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Firas Taamallah 18Firas Taamallah 18 

How to convert text field to Hours in Apex?

Hello , 

I have text field contain :  7AM-7PM UTC+1 
i want to convert it to Hours so i can check if current hour is in this range or no - Any help would be appreciated

Thanks
VinayVinay (Salesforce Developers) 
Hi Firas,

Check below reference.

https://salesforce.stackexchange.com/questions/255835/convert-string-to-time-format-apex/255881

Thanks,
George WeberGeorge Weber
Hello,

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue.


Walgreenslistens (https://www.walgreenslistens.life/)