Adds date formatting to data class