Web Analytics Made Easy -
StatCounter simple PHP timestamp help - CodingForum

Announcement

Collapse
No announcement yet.

simple PHP timestamp help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • simple PHP timestamp help

    PHP Code:
    <?php
    $stamp 
    date("Y-m-d-h-m-s");
    echo 
    $stamp;
    ?>
    My code is not quite working - everything but the minutes is working...what's the correct thing to put in to display minutes?

    You can see what the script is showing at http://www.gojicapital.com/test/test.php

    Thanks!

    -Adam
    Last edited by adamjthompson; Oct 4, 2006, 03:27 PM. Reason: update php
    I give green rep to those who answer my questions! :)

  • #2
    $stamp = date("Y-m-d-h-i-s");

    minutes is small "i".

    see all parameters:
    http://us2.php.net/date

    Comment


    • #3
      Thanks!
      I give green rep to those who answer my questions! :)

      Comment

      Working...
      X