Forums

display current date in ('F j, Y') (4 posts)

  1. homienick
    Member
    Posted 2 years ago #

    I'm trying to display the CURRENT date in wordpress using php in this format ('F j, Y').

    I know of these:

    <?php echo('Current time: ' . current_time(mysql) . '<br />'); ?>
    <?php echo('Current timestamp: ' . current_time(timestamp)); ?>

    but the output is this:
    Current time: 2005-08-05 10:41:13
    Current timestamp: 1123238473

    I want the output to be in this format:
    October 23, 2007

    anyone? i've been searching all over for this answer. gah.

  2. Ivovic
    Member
    Posted 2 years ago #

    echo date('format');

  3. homienick
    Member
    Posted 2 years ago #

    its blank in the mysql table that's supposed to store this data. do i need to convert date to a variable, then store it? if so, how would i do that?

  4. MichaelH
    moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic