Add date support

Most basic level of date support, needs some re-jigging in the client to format dates a bit more nicely. Submitting pull request now as it's already better than current master