Set `null` on empty date to allow clear