Date field is not showing correctly