Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marco 6 posts 106 karma points
    Nov 04, 2016 @ 15:43
    Marco
    0

    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)

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies