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

Copy values in text Field to Number Field



Help needed.


I have a Text field with the hours of now() func. I want to subtract 14 hrs from that num.


So I wanna know how to move the values of text to number field.


Any help is highly appreciated..



Best Answer chosen by Admin (Salesforce Developers) 

All Answers

Do you want apex code for it ? Or just a formula field ?

IN APEX USE Integer.valueOf(String) in Formula you can use TEXT(Field__C)


Thanks for Code, can I get it in Formula??