Copied to clipboard

Flag this post as spam?

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


  • Alec Rust 11 posts 31 karma points
    Feb 28, 2012 @ 17:08
    Alec Rust
    0

    Output correct "datetime" <time> attribute

    I'm looking to output a timestamp of when content was published within Umbraco, in the correct format required by the HTML5 <time> element.

    For example:

    <time datetime="2012-02-28T20:00+00:00" pubdate>February 28, 2012</time>

    Is there a way to achieve this within Umbraco?

    More info on correct formatting of this <time> element can be found here: http://html5doctor.com/the-time-element/

Please Sign in or register to post replies

Write your reply to:

Draft