• suhas ghule 3
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I have a cron expression which will schedule an apex class to run on every SUNDAY
The cron Expression for that is - 0 0 0 ? * SUN *

But i want to include a StartDate and EndDate to that cron expression.
Suppose the StartDate(dd/mm/yyyy) - 12/9/2014,  EndDate- 26/9/2014
The cron should only run on sundays between these two dates

Any ideas on how to do that?? 
I have a cron expression which will schedule an apex class to run on every SUNDAY
The cron Expression for that is - 0 0 0 ? * SUN *

But i want to include a StartDate and EndDate to that cron expression.
Suppose the StartDate(dd/mm/yyyy) - 12/9/2014,  EndDate- 26/9/2014
The cron should only run on sundays between these two dates

Any ideas on how to do that??