My SharePoint Blog

Blogs On SharePoint Technologies


Search Site

Recent posts

Recent comments

Tags

Don't show

    Categories


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    SharePoint Convert UTC To Local Time

    For example, the LastItemModifiedDate property of a SPList is not local time, it is UTC.  So just use the SPWeb object to convert it to local time.

    DateTime myDT = mySPWeb.RegionalSettings.TimeZone.UTCToLocalTime(mySPList.LastItemModifiedDate)


    Categories: SharePoint
    Posted by Kevin on Friday, May 09, 2008 2:00 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    Add comment


     

    [b][/b] - [i][/i] - [u][/u]- [quote][/quote]



    Live preview

    Sunday, September 07, 2008 6:46 PM