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.

Entry Date & Time

November 13, 2011 5:57pm

Subscribe [3]
  • #1 / Nov 13, 2011 5:57pm

    dayneshuda

    5 posts

    I’m trying to show the current time a blog entry is posted. I can’t seem to get anything other than the entry date. How do I show the time the entry was published?

    I’ve tried: {entry_date format="%F %d, %Y at %g:%i %a"}

    The only tag I managed to find was current_time which doesn’t help in this case. It seems like a fairly common thing to want to do. But I can’t find anything on this basic topic.

    Thanks for the help.

  • #2 / Nov 14, 2011 10:23am

    Kevin Smith

    4784 posts

    Hi dayneshuda,

    Welcome to the forums! To be honest, I’m confused by your question. What do you mean by “the current time a blog entry is posted”? The {current_time} variable returns “the current server time localized to each user’s particular setting”, which makes sense. And {entry_date} is the date the entry was submitted, which also makes sense.

    Let me know what you’re looking for, and I’ll see if I can’t find it for you.

  • #3 / Nov 14, 2011 10:32am

    dayneshuda

    5 posts

    I’m looking to show the time the post was published. So it would be an entry time essentially. If more than one post is published in one day, I’d like to show the time as well as the date. But I don’t believe there is a entry_time tag correct?

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

    dayneshuda

    5 posts

    I’m not sure how else I can explain it.

  • #5 / Nov 15, 2011 9:31pm

    Sean C. Smith

    3818 posts

    dayneshuda,

    entry_date should work for you. It would help us if you could post relevant template code here and if possible a link to the site.

    Sean

  • #6 / Nov 16, 2011 7:03am

    dayneshuda

    5 posts

    Here’s the page I’m working on: http://www.dayneshuda.com/blog/view/2011-hunting-season

    I ended up figuring it out 😊 I didn’t understand fully how the tags worked for that attribute. I didn’t understand that you could combine date and time within the entry_date tag. Didn’t make sense that time would fall under date. I think the tag current_time was throwing me. I assumed there needed to be a entry_time or something. WAY overthinking it. Thanks for bearing with me.

    {entry_date format="%F %d, %Y at %g:%i %a"}

  • #7 / Nov 18, 2011 5:22pm

    Sean C. Smith

    3818 posts

    dayneshuda,

    Was happy to help out. Glad you got it worked out. Is there anything else I can do to help?

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases