Support CodeGen for dates