You could pass your dataset through system.dataset.formatDates first.
It transforms dates into strings, so you'd handle localization there, and toCSV doesn't have to care.
You could pass your dataset through system.dataset.formatDates first.
It transforms dates into strings, so you'd handle localization there, and toCSV doesn't have to care.