allow setting dates as nil