Expand|Select|Wrap|Line Numbers
- <cfquery name="yearSelect" datasource="#request.dsn#">
- SELECT DISTINCT DATEPART(docdate,"yyyy") AS YEARRELEASED FROM fileContent WHERE archivedFile = 0
- </cfquery>
I've also tried DATEPART(yyyy,docdate) and YEAR(docdate) and they don't work either. I'm a wee bit stumped.