SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to find the sitecollection created and last content modified date in Sharepoint 2010, found a SPSite property for last content modified date however could not find any clue to find the created date. Is there a way to find the sitecollection created date?

share|improve this question
up vote 2 down vote accepted

This post for Sharepoint 2003 mentions it would be site.RootWeb.Created. This post echoes that as well. I would have figured it would be available as part of the SiteData web service.

The SiteData web service shows it as part of the WebMetaData. If you wanted strictly content only, I think you'd have to look at all the lists and libraries in the site and get the data on a per list/library level and get the most recent modification.

share|improve this answer

As Eric mentioned, it is exposed through the SiteData web service. I wanted to test it before I posted; note though that I believe you might have to be an administrator to execute the SiteData web service (that'd need another test to verify; I can't remember 100% either way).

SiteData Web Service

share|improve this answer

For MOSS2007, we ended up using the created date of the Site Template Gallery because the created of the SPSite could potentially change (it was years ago, but I think restoring a site from backup would do it). As we're upgrading to SP2010, we are using the Solution Gallery, since the Site Template Gallery is gone. The code (minus all the error handling) looks like this:

   site.RootWeb.Lists["Site Template Gallery"].Created

Also, be careful about last content modified date. We found that sometimes a system process would go through and update the last modified date of sites, even though nothing has changed. If you need to be sure, you can use SPSiteDataQuery to check all the contents of the site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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