WordPress.org

Ready to get started?Download WordPress

Forums

problem with the_date() (3 posts)

  1. darren131
    Member
    Posted 9 years ago #

    hi all,
    I'm trying to create a timestamp (using the the_date() function), here is the code:
    $day = the_date('jS','','',0);
    $month = the_date('m','','',0);
    $monthname = the_date('F','','',0);
    $year = the_date('Y','','',0);
    $timestamp = "$day $monthname, $year";
    for some reason its not working...its only outputting $day and $month.
    Any ideas would be great!
    Cheers
    Darren

  2. Beel
    Member
    Posted 9 years ago #

    Use the_time

  3. darren131
    Member
    Posted 9 years ago #

    excellent! Thanks for the help Beel! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.