Handle dates like 2014-1-2 as well as 2014-01-02