convert date from quantlib to mysql,add option type