Make date input format more consistent.