A more robust date field conversion (minor fix)