fixed date logic for batching
Merge pull request #73 from pdelbar/v44

fixed date logic for batching