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
Technology Tips and News
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
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; }
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.