Fix for issue #156

    1. Added DateTime.parse_to_option to utils
    2. Used this to check for valid dates