LPS-46275 Refactoring start and end dates for export/import processes

Hey Brian,

This is quite a small change. The start and end dates should be calculated before starting the process, so Levente refactored it to be like that.

Thanks,

Máté