Get Date

Help
Simon
2004-07-12
2004-07-28
  • Simon

    Simon - 2004-07-12

    My problem is as follows :

    I am using
    $date=$db->f("startdate");
    $dated = getdate($date);

    and then
    print $dated[mday]." ".$dated[month]." ".$dated[year]." Monthly";

    but it returns this date

    1 January 1970 , my timestamp says todays date

    Help

     
    • Sven Eichler

      Sven Eichler - 2004-07-28

      Is your "startdate" a PHP or a MySQL-Timestamp?!

      Work this example correct?
      <?php
      $today = getdate();
      print_r($today);
      ?>

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks