Added possibility to define start and end dates for the export