Add working date parsing. Mostly.

    Lots of testing yet to do.