Quantcast
Channel: Customization – SharePoint Insight
Viewing all articles
Browse latest Browse all 10

Displaying only Year in SharePoint Calculated Column

$
0
0

I wanted to display just the year of a DateTime column of SharePoint. I created a calculated column and set the formula to Year([MyDateTimeColumn]). The result I got was 2,009 ; 2,008 etc. which offcourse incorrect for year. After searching through internet, I found a good article solved my problem.

The correct formula is TEXT(YEAR([MyDateTimeColumn]),”000″)


Share


Viewing all articles
Browse latest Browse all 10

Trending Articles