Fetching Sharepoint list created date programmatically

Hi all,

can anyone let me know how to fetch the created date of the sharepoint list programatically(c#)???????????????

Not the list item.......  but the list itself (i.e when was it created)

Thanks in advance

April 10th, 2014 2:00am

Hope below powershell will help you:

http://sharepointofnoreturn.wordpress.com/2013/03/11/powershell-finding-creator-of-list-finding-date-of-list-creation/

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist_properties.aspx

[ClientCallableAttribute]
public DateTime Created { get; }

Free Windows Admin Tool Kit Click here and download it now
April 10th, 2014 2:08am

You can use below code block to achieve the same.

using (SPSite siteCollection = new SPSite(SPContext.Current.Web.Url))
{
    using (SPWeb web = siteCollection.OpenWeb())
    {
        SPList List = web.Lists.TryGetList("listname");
        DateTime createdDate = List.Created.Date;
        // TO DO
    }
}

Thanks.

April 10th, 2014 2:37am

thanks a lot jaydeep and inderjeet
Free Windows Admin Tool Kit Click here and download it now
April 10th, 2014 5:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics