Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How to get a current time of sharepoint web application

How to get a current time of sharepoint web application

Scheduled Pinned Locked Moved SharePoint
sharepointtutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Satish Developer
    wrote on last edited by
    #1

    Hi, My sharepoint web application which is in Timezone ((GMT+08:00) Kuala Lumpur, Singapore) and my system set to another timezone (GMT = 05:30)Chennai, Kolkata,Mumbai,New Delhi). Now I have been trying to get the current datetime of my sharepoint webapplication. But i am getting different time. I used to following to retrive sharepoint web app current time. SPUtility.GetServerNow(Your spweb object);". But this time is different when i check with the time when i created a list item in that web applciation. Please let me know how to get the sharepoint web app curr time ?

    G. Satish

    N 1 Reply Last reply
    0
    • S Satish Developer

      Hi, My sharepoint web application which is in Timezone ((GMT+08:00) Kuala Lumpur, Singapore) and my system set to another timezone (GMT = 05:30)Chennai, Kolkata,Mumbai,New Delhi). Now I have been trying to get the current datetime of my sharepoint webapplication. But i am getting different time. I used to following to retrive sharepoint web app current time. SPUtility.GetServerNow(Your spweb object);". But this time is different when i check with the time when i created a list item in that web applciation. Please let me know how to get the sharepoint web app curr time ?

      G. Satish

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You need to set the correct time zone for the web application. From Central Admin go to Manage web applications, highlight the one you want and select general settings in the ribbon bar.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups