سؤال

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

هل كانت مفيدة؟

المحلول

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

alt text

نصائح أخرى

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

Another solutionn = TEXT (created,"yyyy')

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top