Test that a date in the format of YYYY-MM-DD is parsed correctly.