Put date formatting/parsing into critical sections.
Fixed String vs Character comparisons.
Merge pull request #116 from Elinow/master

Put date formatting/parsing into critical sections.