You need to sign in to do that
Don't have an account?
Mani Cube84
Previous working date based on the BusinessHours
Hi
I need to find out the previous working date based on the BusinessHours .
Example
Order Due Date : Sunday, March 10, 2013
I need to get its previous working date which would be Friday, March 08,2013.
Also I want to make sure that if Friday was an holiday then it should return me Thursday, March 07,2013.
I have already looked at the business hours class (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_businesshours.htm)
I was able to get the next buisiness day but not the previous buiseness day.
This is very urgent, I will appreciate if some one can provide me sample code for this.
Thanks
I need to find out the previous working date based on the BusinessHours .
Example
Order Due Date : Sunday, March 10, 2013
I need to get its previous working date which would be Friday, March 08,2013.
Also I want to make sure that if Friday was an holiday then it should return me Thursday, March 07,2013.
I have already looked at the business hours class (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_businesshours.htm)
I was able to get the next buisiness day but not the previous buiseness day.
This is very urgent, I will appreciate if some one can provide me sample code for this.
Thanks
The first one:
Due_Date_Name (Type = Text).: to get the name of the current day, this one wont be visible on the layout
The second one:
Previous Working Day (Type=CheckBox): it checks if the was on saturday or sunday (not holiday) .
If this solves your problem, kindly set as best answer. thanks