accept null val of date