如何转化日期时间格式?

pastime_Wang 2006-09-14 10:16:20
请教各位:
这样地日期如何在oracle中如何转化,才能被oracle识别?

十一月 9 2005 1:42PM

谢谢!!
...全文
202 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
backlove 2006-09-15
  • 打赏
  • 举报
回复
D|day of week (1-7)
DAY|Name of day (upper case, day is upper case)
DY|Abbreviated name of day
J|Julian day (Number of days since January 1, 4712 BC)
AM,PM|Meridian indicator
A.M., P.M.|Meridian indicator with periods.
HH, HH12|Hour of day (0-12)
HH24|Use 24 hour clock for hours (1-24)
MI|Minute (0-59)
SS|Second (0-60)
SSSSS|(five S's) seconds past midnight. (0-86399)
None|Date must be in the format 'DD-MON-YY';
backlove 2006-09-15
  • 打赏
  • 举报
回复
给你发个格式对应表,没看到可以转中文的,自己写个东西转了中文,再转日期吧
Format Model|Description
CC, SCC|Century (S prefixes BC dates with a minus sign)
YYYY, SYYYY|Year (S prefixes BC dates with a minus sign)
IYYY|Year based on ISO standard
YYY, YY, Y|Last three, two or one digits of the year
IYY, IY, I|Last three, two or one digits of the ISO year
Y,YYY|(Four Y's with comma) put a comma in the year (1,995)
YEAR, SYEAR|Year spelled out (S prefixes BC dates with a minus sign)
RR|Last two digits of year in another century (allows for year 2000)
BC, AD|BC or AD indicator
B.C., A.D.|BC or AD indicators with periods
Q|Numeric quarter of the year (1-4 with Jan-Mar=1)
MM|2 number month (Jan = 01)
RM|Roman numeral month
MONTH|Name of month spelled out (upper case - month is upper case)
MON|abbreviated name of month (upper case - month is upper case)
WW|Week of the year (1-53)
IW|Week of the year (1-52, 1-53) based on ISO standard
W|Week of month (1-5)
DDD|day of year (1-366) (Don't forget leap years)
DD|day of month (1-31)
pastime_Wang 2006-09-15
  • 打赏
  • 举报
回复
怎么写呀,能不能给个例子,谢谢?

这个日期格式是从csdn倒出来的!
zihu928 2006-09-14
  • 打赏
  • 举报
回复
自己写个function。哈哈

17,089

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧