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.

Formatting date strings

October 31, 2011 5:49pm

Subscribe [3]
  • #1 / Oct 31, 2011 5:49pm

    leeaston

    634 posts

    Is there a tag to take a date string like 1319966340 and return the date and time? Or what’s an alternative?

    Best wishes
    Lee

  • #2 / Oct 31, 2011 6:28pm

    dstechroom

    113 posts

    I don’t believe this is done out of the box, but these look promising:

    http://devot-ee.com/add-ons/apstylee
    http://devot-ee.com/add-ons/wb-relative-date

  • #3 / Oct 31, 2011 6:59pm

    leeaston

    634 posts

    Thanks for the reply and taking the time to look up the add-ons. I missed the both when I searched…

  • #4 / Nov 01, 2011 1:57pm

    Sue Crocker

    26054 posts

    Thanks for the assist, dstechroom.

    Lee, are we talking about a custom field, or what exactly?

  • #5 / Nov 01, 2011 2:17pm

    leeaston

    634 posts

    Hi Sue, I was using the query module and it was out putting unix date stamps, but I found you could yo can use the format= parameter in a tag such as last_entry_date and it would get formatted. Thanks for checking up on me 😊

  • #6 / Nov 03, 2011 2:49pm

    Sue Crocker

    26054 posts

    Yup, you sure can. Glad you were able to figure it out. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases