Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date

Status
Not open for further replies.

ridhirao22

Programmer
Aug 27, 2010
140
US
Hi,

Using Oracle 10 g

I used a sql to get the date format for yyyyQ
and expected to see 01-JAN-1990 but I see 01-FEB-1990

SELECT TO_DATE(SUBSTR('19903',1,4),'YYYY')FROM Dual

What could the problem be?

TIA,
RR


 
See my response in your other thread. To_date with a 'YYYY' format mask has some unexpected dependencies on the currect value of sysdate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top