Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Year of CreatedBy date in a calculated column

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

like image 623
van Avatar asked Nov 12 '10 16:11

van


3 Answers

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

alt text

like image 150
Marek Grzenkowicz Avatar answered Oct 26 '22 17:10

Marek Grzenkowicz


You can simply use =CONCATENATE(YEAR([Created])), it represents the year as plain text

like image 21
Amit Dubey Avatar answered Oct 26 '22 18:10

Amit Dubey


Another solutionn = TEXT (created,"yyyy')

like image 36
XristosK Avatar answered Oct 26 '22 17:10

XristosK