ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

HTML5 and Time

November 24, 2010 5:33pm

Subscribe [2]
  • #1 / Nov 24, 2010 5:33pm

    vacquah

    355 posts

    How does the html5 code below translate into ee code?  thanks

    <time datetime="2009-10-22" pubdate> October 22, 2009 </time>
  • #2 / Nov 26, 2010 12:51pm

    Boyink!

    5011 posts

    Do you mean how would you write EE code to produce that HTML?

    You would just use a date variable—like Current Time and the proper date formatting string.

  • #3 / Nov 26, 2010 12:53pm

    vacquah

    355 posts

    Do you mean how would you write EE code to produce that HTML?

    You would just use a date variable—like Current Time and the proper date formatting string.

    yes - getting myself confused with the “date= ” part and the string part. in this case, the date shown here is the weblog entry date.

  • #4 / Nov 26, 2010 12:56pm

    Boyink!

    5011 posts

    Use the weblog entry date twice, with different format strings for the different date formats the HTML has.

  • #5 / Nov 26, 2010 9:04pm

    vacquah

    355 posts

    All sorted. thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases