Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone I have a problem when i try to get product create date because the date returned is 01-01-0001 (like it were null)
var products = Model.GetPropertyValue<IEnumerable<IProductContent>>("shopProducts"); <ul class="list-group"> @foreach (var product in products) { <li class="list-group-item"><a href="#">@product.</a><span class="badge">@product.CreateDate.ToLocalTime().ToString("dd/MM/yyyy")</span></li> } </ul>
How can i retrieve the correct date? Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Merchello - CreateDate property of Merchello IProductContent return 01-01-0001
Hi everyone I have a problem when i try to get product create date because the date returned is 01-01-0001 (like it were null)
How can i retrieve the correct date? Thanks
is working on a reply...