I am working on a site that was built using the Blog 4 Umbraco package. An issue has been raised related to the different dates displayed on the site. In post lists a date shows such as 2/2/2013 and in the actual post the date will say 2/21/2013. I looked into the post page template and the date is being displayed using this code:
Looking at the source code of the Blog 4 Umbraco package the "PostDate" is taken from the created date of the blog post (createDate), so you could use below code instead of your item field. There may be something wrong in the date formatting functionality to get and display the complete date.
"PostDate" in Blog 4 Umbraco
Hello:
I am working on a site that was built using the Blog 4 Umbraco package. An issue has been raised related to the different dates displayed on the site. In post lists a date shows such as 2/2/2013 and in the actual post the date will say 2/21/2013. I looked into the post page template and the date is being displayed using this code:
Hoping to leverage the postDate in my listing macro as well I tried this:
However this code throws an error saying the postDate field cannot be found. Is there a way to use this post date in the listings as well?
Hi Jeason,
Looking at the source code of the Blog 4 Umbraco package the "PostDate" is taken from the created date of the blog post (createDate), so you could use below code instead of your item field. There may be something wrong in the date formatting functionality to get and display the complete date.
Try this for your macro as well.
Hope this helps,
Sahan
is working on a reply...