Parse date values consistently

Fixes #45