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
koti91koti91 

need to find out start date and end date for a batch to be processed

Hi

 

I need help in finding out the start and end date for a batch,

.

 

I had a custom setting initilize check box field , when ever it is false i need to start my batch process from the day it is running to 4 months .i.e end date should be after 4 months.

 

ex: if my batch is running today (05/30/2012)and initialize is false , then my start date should be today(05/30/2012) and end date should be  (08/31/2012).

 

if initialize is true then my start date should be 08/01/2012 and end date should be 08/31/2012.

 

Can any one help in finding out the start date and end date for this example.