Update the date type variable handling for event insert