Added display formatting to the date and datetime widgets.