Click here to Skip to main content
13,000,742 members (59,115 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 6 Feb 2013

SharePoint Designer Hide Time in Calendar View

, 6 Feb 2013
Rate this:
Please Sign up or sign in to vote.
How to use SharePoint Designer to edit an existing Calendar page.


In this article we can explore a SharePoint Page Customization Scenario. Please note that this falls into the responsibility of a SharePoint Designer.

Following are the tools which we use to achieve the modification:

  • SharePoint Designer 2010
  • Internet Explorer

What is Calendar View?

Calendar View is a visual way of viewing documents or list items based on a Date column. We can enable Calendar view for Library as well as List.

Create a new Document Library

For this article, create a new Document Library and name it as My Calendar Docs.

Add some documents to the above Library.

Now create a new Calendar view for the above library using Library > Create View button.

Set the calendar properties as shown below:

The calendar has the following views:

  1. Month View
  2. Week View
  3. Day View

Each view can be displayed using the respective buttons from the Calendar View.

Following is our library after enabling the Calendar View.

The Challenge

You can see the Time is displayed in the Calendar Item. Our challenge is to hide the Time part, which is not configurable in the usual way.

Let us see how to achieve this.

Open in Internet Explorer

Open the Calendar View in Internet Explorer and select Tools > Developer Tools. In the appearing dialog click the Left Arrow as shown below:

Now move the mouse over Calendar control and you will get the Time div highlighted.

Inside the Developer Tools dialog, you can see the HTML elements as shown below:

The div class name is ms-acal-sdiv and there is a Text element denoting time.

The above HTML elements are contained in the Calendar View.aspx page. We can edit this page using SharePoint Designer.

Open SharePoint Designer

Choose the Site Actions > Edit in SharePoint Designer option to continue. If you do not have SharePoint Designer installed you need to install it first.

Inside SharePoint Designer, navigate to Lists and Libraries, My Calendar Docs, Calendar View.

We are editing the Calendar View page now.

Click the Advanced Mode button from the tool bar. Now locate the following section as given below: (You can refer to the line number as well)

Below the last line, add the following section:


Now the entire section looks like below:

Now save the changes and you can refresh the page in browser. You should get the Time part hidden as shown below:

You can even change the color of the Div using following code:


After the modification, refresh your browser window.

You can see that the back color of the calendar changed.

We are pushing the text to left side, instead of hiding it. Depending on the scenarios we can perform different solutions as:

  1. Hiding the div using display: none
  2. Changing color of div
  3. Setting Text to empty

DIV ID and Class

Please note that DIV Id and DIV Class are different. Id will be targeting a unique element but Class will be targeting a set of elements.

In our example we were targeting DIV Class so that multiple elements will be targeted for change applied.

Customizing pages decreases page performance and might impact your SharePoint Governance rules. I recommend you consult with your SharePoint Administrator before performing such customizing page activities.



In this article we have seen how to use SharePoint Designer to edit an existing Calendar page. In real world scenarios this knowledge would be useful.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Jean Paul V.A
United States United States
Jean Paul is a Microsoft MVP and Architect with 12+ years of experience. He is very much passionate in programming and his core skills are SharePoint, ASP.NET & C#.

In the academic side he do hold a BS in Computer Science & MBA. In the certification side he holds MCPD & MCTS spanning from .Net Fundamentals to SQL Server.

Most of the free time he will be doing technical activities like researching solutions, writing articles, resolving forum problems etc. He believes quality & satisfaction goes hand in hand.

You can find some of his work over here. He blogs at

You may also be interested in...


Comments and Discussions

QuestionSuperb Pin
jyothis7729-Sep-14 21:34
memberjyothis7729-Sep-14 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 6 Feb 2013
Article Copyright 2013 by Jean Paul V.A
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid