fixing date entry