How to get a current time of sharepoint web application
-
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
-
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
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