Formatting date pulled from post array

  • Author
  • #1032881

    I’m grabbing the date from a post object $post->post_date and I want to format it. I know you can format a date object as shown here Since I’m not that familiar with WP I don’t know how the date that I’m grabbing from my post relates to the date object that takes parameters which allow it to be formatted.

    This is the code that I’m working with that I would like to format: echo '' . $recent["post_title"].'
    '. $recent["post_date"].'

    Thanks for the help!



    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you’ll find help at the forums.

    If you don’t understand the difference between and, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

The topic ‘Formatting date pulled from post array’ is closed to new replies.