|
I want to display the creation date of a content type in a view.
@Model.ContentItem.CommonPart.CreatedUtc is what I need but it's stored in UTC format.
The method Orchard.Core.Shapes.DateTimeShapes.ConvertToDisplayTime() can convert this to a local datetime.
However, I'm not sure how I can call this method. Should I instantiate the class and call the method? How? I've never worked with Castle before.
|