Need help with Dates in PHP
Posted: Sun Feb 21, 2010 2:45 pm
Hi all,
I need some help with using dates in php. My page is getting the date caled 'Due Date' and printing it in a table. See php code:
echo "<tr><td>" . date("M d Y",strtotime($row['DueDate'])) . "</td>";
I want to set variables to the month, date and year. Does anybody know how to do this? I'm new to php and so any help here is much needed and will be much appreciated!
Thank you!
I need some help with using dates in php. My page is getting the date caled 'Due Date' and printing it in a table. See php code:
echo "<tr><td>" . date("M d Y",strtotime($row['DueDate'])) . "</td>";
I want to set variables to the month, date and year. Does anybody know how to do this? I'm new to php and so any help here is much needed and will be much appreciated!
Thank you!