1

I want to know know how to find out the date when a given web was created. I want to find out who created it using C# and the date it has been created.

I am using SharePoint 2007 server with C#.

1 Answer 1

1

Example for a console application

using (var site = new SPSite("http://intranet.contoso.com"))
{
    using (var web = site.OpenWeb())
    {
        Console.WriteLine(web.Author);
        Console.WriteLine(web.Created);
        Console.ReadLine();
    }
}

Should be working for SharePoint 2007, too.

For more information have a look at SPWeb members (Microsoft.SharePoint) - MSDN

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.