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.

{relative_date} - possible to only show days and hours?

October 26, 2008 10:07pm

Subscribe [4]
  • #1 / Oct 26, 2008 10:07pm

    Ryan 2010

    265 posts

    Showing minutes as part of the relative_date for my project is irrelevant.

    Is it possible to just show days and hours?

  • #2 / Oct 27, 2008 11:01am

    Philip Zaengle

    293 posts

    Try using the format parameter format=”” parameter.

  • #3 / Oct 27, 2008 2:28pm

    Mark Bowen

    12637 posts

    I don’t think you can use the format=”“ parameter on that variable I’m afraid. I might be wrong but I’m pretty sure it doesn’t allow it. The relative date is just set in that way from what I know. Might be good for a feature request though.

    Best wishes,

    Mark

  • #4 / Oct 27, 2008 2:32pm

    Philip Zaengle

    293 posts

    you little know it all mark 😊 yeah, just tested it. he’s right I’m wrong, i admit it.

  • #5 / Oct 27, 2008 3:21pm

    Mark Bowen

    12637 posts

    you little know it all mark 😊 yeah, just tested it. he’s right I’m wrong, i admit it.

    Definitely far from a know it all me 😉 just that I have been across that previously on a site and seemed to remember trying the format parameter and it not working.

    Best wishes,

    Mark

  • #6 / Oct 27, 2008 4:10pm

    Ingmar

    29245 posts

    No, you can’t use the format parameter here, I am afraid. A feature request, perhaps?

  • #7 / Oct 27, 2008 4:55pm

    Ryan 2010

    265 posts

    ok thanks. I posted it in the feature request forum.

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

ExpressionEngine News!

#eecms, #events, #releases