I want to change the date field in my sql view so that the date will show only the year.
For example, my date field is the typical ’07/01/2011′. I want to be able to have the field that changes only to the year, then another one for month, etc.
Ive tried using CONVERT (VARCHAR(10), GETDATE(), 101), but that only shows the current date plus the format (101) isn’t right.
Use the YEAR function: