+ Start a Discussion
RJoshiRJoshi 

buisness hour class

hi

 

I am calculating due date with help of buisness hour class , my due date is 3.5 hrs ahead of some x date.

 

But addgmt method does not accept the decimal values . Is there any other alternative to give time in minutes .

 

Thanks

Swati

Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf
As the docs say, addGMT is in _milliseconds_, not hours.  3.5 hours is 210 minutes which is 756000 seconds which is 756000000 ms.  So add 756000000.