How to get distinct count of date column vlaues using JavaScript or Jquery in SharePoint 2013

2021-05-17T22:45:24.697+00:00

In below screen shot, I have created view grouped by Release date. I want to show distinct count of Release_date column. Based on below screen shot count should show 12 which will update automatically when new release_data is added.

97274-count.png

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,761 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,021 Reputation points
    2021-05-18T06:29:49.87+00:00

    Hi @Nukala, Swati [CR-US EXT CONSULTANT] ,

    Below is my demo code for your reference:

    	$(function(){  
    		var count=$(".ms-commentexpand-iconouter").length;  
    		$('#titl0-1_').before("<span>Count:" + count + "</sapn>")	  
    	})  
    

    97356-image.png

    97345-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.