将Excel日期数字更改为Oracle日期 [英] Change Excel date number to Oracle date
本文介绍了将Excel日期数字更改为Oracle日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在oracle中的日期为41293
,如何显示DD/MON/YYYY
格式的日期?
I'm having date as 41293
in oracle, how can i show it in DD/MON/YYYY
format?
如果我复制粘贴到Excel中并将其更改为日期格式,则会显示01/19/13
请帮助我.
If i copy pasted it in Excel and change it to date format, it shows 01/19/13
Please help me.
推荐答案
您拥有的值是自1899年12月30日以来的天数.尝试:
The value you have is the number of days since the 30th of December 1899. Try:
select to_char(
to_date('1899-12-30', 'YYYY-MM-DD') + 41293,
'DD/MON/YYYY') from dual
这篇关于将Excel日期数字更改为Oracle日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文