I have a calendar view in Sharepoint Online and my user wants the time hidden.


I manage to hide this using Javascript but the problem is that when I navigate to another month view, the script no longer works. Is there any way to refresh or reload the script to hide the time.

Please help. Thanks!


Here is the script.

enter image description here

  • Can you share the script? Dec 10, 2014 at 6:00
  • I've done this before using setInterval in javascript. might not be the best but with a few logical statements this will take minimal usage. Dec 10, 2014 at 6:02
  • @NadeemYousuf - I already edited the question and added the script.
    – Ching29
    Dec 10, 2014 at 6:16
  • Hello @Vince2322589, I tried using setInterval but an error appears. Expected ']' is the error. I dont know why this occurs when I just added a setInterval function in my script.
    – Ching29
    Dec 10, 2014 at 6:16
  • Does it hide the time and then after you receive the error? you might be hiding the div and then when the interval starts again it tries to wrap the div again? Dec 10, 2014 at 6:31

2 Answers 2


With @Vince2322589 help, I found the solution to this by just using setInterval method and minor modification on my script.


Using the Set interval javascript function and calling your variables again you should be able to hind the time as required.

After you have called your variable do a statement to check if it has been set previously so as to not wrap the div again.

You set the variable v by assigning it again to the variable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.