Parse XML, extract dates using lubridate and write csv