Support setDate

Closes #6