Date 将字符串设置为最新格式
我有个约会:“2015年7月24日星期五13:11:04 CEST”。如何将此字符串转换为日期? 最后,我想做一些类似的事情:Date 将字符串设置为最新格式,date,oracle-sqldeveloper,to-date,Date,Oracle Sqldeveloper,To Date,我有个约会:“2015年7月24日星期五13:11:04 CEST”。如何将此字符串转换为日期? 最后,我想做一些类似的事情: to_char('Fri Jul 24 13:11:04 CEST 2015', 'DD/MM/YYYY HH24:MI:SS') 我尝试了各种方法,但都失败了,出现了以下错误: ORA-01858: - "a non-numeric character was found where a numeric was expected" *Cause: The
to_char('Fri Jul 24 13:11:04 CEST 2015', 'DD/MM/YYYY HH24:MI:SS')
我尝试了各种方法,但都失败了,出现了以下错误:
ORA-01858: - "a non-numeric character was found where a numeric was expected"
*Cause: The input data to be converted using a date format model was
incorrect. The input data did not contain a number where a number was
required by the format model.
*Action: Fix the input data or the date format model to make sure the
elements match in number and type. Then retry the operation.
我能在这里做我想做的事吗?你需要使用
来确定日期:
to_date('Fri Jul 24 13:11:04 CEST 2015', 'DD/MM/YYYY HH24:MI:SS')
to_char
只需要数字