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
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.
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
Is your "startdate" a PHP or a MySQL-Timestamp?!
Work this example correct?
<?php
$today = getdate();
print_r($today);
?>