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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Derived Field - Year from entered date 1

Status
Not open for further replies.

meeskelg

Technical User
Apr 11, 2006
2
US
I'm trying to create a derived field of only the year from the Report Variable type date that the user enters. I've been working with the SUBSTR & TO_DATE, but can't get the correct syntax - any suggestions?
Thanks!
 
You're close...

TO_CHAR(<<DTVAR, "TO_DATE('"yyyy"-"mm"-"dd"', 'YYYY-MM-DD')">> ,'YYYY')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top