在 SQL 语句中写好oracle: select to_char(yourDate, 'yyyy-mm-dd') from yourTable
sql sever: select convert(varchar(10), yourDate, 20) from yourTable