Get Year of CreatedBy date in a calculated column

van picture van · Nov 12, 2010 · Viewed 22.3k times · Source

I am trying to create a calculated column in SharePoint 2007. I want it to return the year of the CreatedBy column date and set the day to be 1 and the month to be January the data type returned by the formula is of type Date.

Any ideas how I can do this? =YEAR([Created]) does not seem to work as expected.

Thanks Nav

Answer

Marek Grzenkowicz picture Marek Grzenkowicz · Nov 12, 2010

=DATE(YEAR([Created]),1,1)

alt text