formatAsDate renders current date rather than custom date
Using Umbraco 7.2.8, I am struggling to render custom properties for sibling pages. I am new to razor and still learning.
I have found a user-created solution for rendering a truncated version of the introduction (see below), but cannot get 'customDate' property to show properly when paired with 'formatAsDate:true'.
Using the 'formatAsDate' causes the date to show the current date rather than my custom date. What am I doing wrong here?
Partial below:
@{
var siblings = @Model.Content.Siblings();
}
@foreach (var post in siblings.Where(x => x.Id != Model.Content.Id))
{
formatAsDate renders current date rather than custom date
Using Umbraco 7.2.8, I am struggling to render custom properties for sibling pages. I am new to razor and still learning.
I have found a user-created solution for rendering a truncated version of the introduction (see below), but cannot get 'customDate' property to show properly when paired with 'formatAsDate:true'.
Using the 'formatAsDate' causes the date to show the current date rather than my custom date. What am I doing wrong here?
Partial below:
@{ var siblings = @Model.Content.Siblings(); }
@foreach (var post in siblings.Where(x => x.Id != Model.Content.Id)) {
I've just figured out I can get the format that I want like this, but, is this correctly done?
@(post.GetPropertyValue
is working on a reply...