Get item created date in Sitecore

sanjeev40084 picture sanjeev40084 · Apr 9, 2013 · Viewed 8.1k times · Source

Is there anyway we can get an item's created date programmatically under the Statistics section? Thanks.

Answer

OptimizedQuery picture OptimizedQuery · Apr 9, 2013

Yes. Sitecore.Context.Item.Statistics.Created. This returns the item's created date as a DateTime object.