WIP: Handle Dates

PR not ready. Have three different test fixtures to play with. Struggling
to correctly encode dates.
fixing encoding