add widget.formatValue and implement custom formatValue for date fields

this puts the corrent value in the value attribute for date fields
Merge pull request #58 from tellnes/format

put correct value in the value attribute for date fields