Oracle Date-time Functions Daquan

Source: Internet
Author: User

Oracle Date-time functions Daquan
to_date Format (time: 2007-11-02 13:45:25 for example)

Year :
yy two digits two-digit year display value:
yyy Three digits three-bit year display value: 007
yyyy four digits four-digit year display value:

Month:
mm number two-bit month display value: one
the Mon abbreviated character set represents the display value: November, if the English version shows the
the month spelled out character set represents the display value: November, if the English version, display November

Day :
DD Number the day of the month displays the value:
DDD Number the day of the year displays the value:
dy abbreviated when in days abbreviated display value: Friday, if the English version, display Fri
Day spelled out when in days full write display value: Friday, if the English version, display Friday
Ddspth spelled out, ordinal twelfth

Hour:
HH-digits 12-hour binary display value:
hh24 digits 24-hour binary display value:

Minute:
mi digits 60 binary display value:

Second:
SS-Digits 60 binary display value:

other
Q Digit Quarterly display value: 4
WW Digit The first few weeks of the year display value:
W Digit The week of the month display value: 1

the time range in the 24-hour format is: 0:00:00-23:59:59 ....
the time range in the 12-hour format is: 1:00:00-12:59:59 ....

Original address: http://bbs.delit.cn/thread-173-1-1.html

Reprint please specify the source:

Author: metric Technology http://www.delit.cn

Oracle Date-time Functions Daquan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.