Put date formatting/parsing into critical sections.