Thanks Dave,
I also think the format was convert in ExpDatetime. ex_function_dateformat has member variable call dateformat_ which used to decide it call convDatetimeToASCII or not. Qifan gave me some suggestions on debugging the code about ExpDatatime last week. I am following these suggestions and trying to find the relation with my problem.
