Treat date separatly before writing to file