fixed date formatter to correctly prepopulate date