add check for DateTime as suggested by fxp.