Add date format to model and view.

closes #9