SharePoint month based data in lists and date formatting functions in SharePoint

17. November 2008

There is no obvious solution available in SharePoint lists to filter list data based on month. However, we can create a calculated field to provide a column which would display Month info. Then we can use that month column to group data based on months.

Here is the simple 2 step procedure:

1. Create a new calculated field and use following formula to display month out of the modified date:
=TEXT(Modified,"MMMM")

This formula will display month extracted from "Modified" date.

2. Now, use this newly created column to filter list data in Groups.

That's it!

Further formatting options using =TEXT() function are:

November 2008 =TEXT([Modified],"mmmm")&" "&TEXT([Modified],"yyyy")

November 08 =TEXT([Modified],"mmmm")&" "&TEXT([Modified],"yy")

Nov 08 =TEXT([Modified],"mmm")&" "&TEXT([Modified],"yy")

10 08 =TEXT([Modified],"mm")&" "&TEXT([Modified],"yy")

10 08 =TEXT([Modified],"m")&" "&TEXT([Modified],"yy")

November Monday 2008 =TEXT([Modified],"mmmm")&" "&TEXT([Modified],"dddd")&" "&TEXT([Modified],"yyyy")

November Mon 2008 =TEXT([Modified],"mmmm")&" "&TEXT([Modified],"ddd")&" "&TEXT([Modified],"yyyy")

November 17 2008 =TEXT([Modified],"mmmm")&" "&TEXT([Modified],"dd")&" "&TEXT([Modified],"yyyy")
Monday November 17th, 2008 =TEXT([Modified],"dddd")&" "&TEXT([Modified],"mmmm")&" "&TEXT([Modified],"d")&"th, "&TEXT([Modified],"yyyy")

SharePoint

Comments

4/28/2010 5:42:53 AM #
can anyone tell me how to get the little avatars to show up in my comments section? thank you!
6/3/2010 10:41:11 AM #
Youre so awesome, man!  I cant believe I missed this blog for so long.  Its just great stuff all round.  Your design, man...too amazing!  I cant wait to read what youve got next.  I love everything that youre saying and want more, more, MORE!  Keep this up, man!  Its just too good.
6/3/2010 1:32:17 PM #
What youre saying is completely true.  I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand.  I also love the images you put in here.  They fit so well with what youre trying to say.  Im sure youll reach so many people with what youve got to say.
6/5/2010 5:09:44 AM #
This is a useful summary, I found your site searching aol for a similar subject matter and came to this. I couldnt find to much alternative information and facts on this posting, so it was great to discover this one. I will probably be back again to look at some other posts that you have another time.
6/8/2010 6:31:27 PM #
I cant believe the multitude of wonderful info you have on your blog. I have learned a lot from it. Will be coming back soon.
6/12/2010 4:05:43 AM #
The Cup could be really close!   I give it a coin toss with my opinion but good luck to both soccer teams! I should be watching for sure!
6/14/2010 12:15:13 AM #
The final FIFA match should be very intense!   I give it a flip of a coin with my opinion but good luck to both soccer teams! I should be watching for sure!
6/22/2010 2:58:44 PM #
This is actually the 2nd instance I've encountered your webblog within the last couple weeks.  Appears like I should take note of it.
Sachin Dubey
Sachin Dubey
9/2/2010 4:24:20 PM #
Excellent post, Even I can't believe that I missed your blog for so long. I was hunting for this kind of sharepoint solutions from so long.

Thanks a lot Man Smile Laughing

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading