You need to sign in to do that
Don't have an account?
The new Learner
How to calculate the date of current week
Hi Experts,
I need to calculate the Date of current week in apex class, i have two fields preferred date and WeekDate field , eg: when 'Preferred Day(picklist list field)” = Monday so i need to set to the date for the "WeekDate" field to Monday of this week like wise i need to do till friday. if Preferred Day value is none then i need to populate todays date for the WeekDate field.
Thanks indavance
I need to calculate the Date of current week in apex class, i have two fields preferred date and WeekDate field , eg: when 'Preferred Day(picklist list field)” = Monday so i need to set to the date for the "WeekDate" field to Monday of this week like wise i need to do till friday. if Preferred Day value is none then i need to populate todays date for the WeekDate field.
Thanks indavance
check this out: https://success.salesforce.com/answers?id=90630000000h1oXAAQ