Use multiparameter typeclasses for date converting