Copied to clipboard

Flag this post as spam?

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


  • Dieter Luekens 4 posts 77 karma points
    Apr 15, 2019 @ 11:25
    Dieter Luekens
    0

    Date Format

    @Model.Value("erstellungsdatum") => Result 3/22/2016 12:00:00 AM but i need the result 22.03.2016

    In Umbraco 7 it works: @Model.Value("erstellungsdatum").ToString("dd.MM.yyyy")

    who can help me?

  • Dieter Luekens 4 posts 77 karma points
    Apr 15, 2019 @ 11:35
    Dieter Luekens
    3
    <time>@(Model.Value<DateTime>("erstellungsdatum").ToString("dd.MM.yyyy"))</time>
    

    Sorry, I found a solution after all ;-)

  • Rabin Koirala 6 posts 77 karma points
    Sep 22, 2022 @ 06:03
    Rabin Koirala
    0
    @(Model.Value<DateTime>("publicationDate").ToString("dd MMMM yyyy"))
    
  • 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