Date period for batch job needs to be dynamic using runbasebatch x++

The report will be planned to run in batch. The date period for batch needs to be dynamic. It’s planned to be run monthly to be run on the 3rd of each month. For batch, the date interval be used, so a date interval for the 3rd of or the previous month to the 3rd of the current month can be setup. If date intervals are used, then the ability to override the from and to dates should be allowed. kindly pls advice how can i do.

Thanks Advance

What problem do you have with the requirement you’ve described?

Hi Martin

if i set FromDate -3rd of the month (like oct 3rd ) the ToDate -should be next month 3rd (like 3rd nov) should be get automatically.So i need to do in my batch job.Any suggestions pls let me know
Thanks

You can use nextMth() function to get the date in the next month.