select to_char(trunc(to_timestamp('2011-07-03 00:00:00.0','yyyy-mm-dd hh24:mi:ssxff')),'yyyy-mm-dd') from dual;
--不trunc也行,我是为了保险
select to_char(to_timestamp('2011-07-03 00:00:00.0','yyyy-mm-dd hh24:mi:ssxff'),'yyyy-mm-dd') from dual;
to_date(‘2011-07-03 00:00:00.0’ ,‘yyyy-MM-dd’)