Add date model

It closes #29