I'm trying keep the date, and trim off the time when I pull it from a
wordpress datebase in a while loop. Here's what I'm doing right now:
$lmdate = mysql_query("SE LECT post_modified FROM wp_posts WHERE
post_status = 'publish'");
while ($date = mysql_fetch_arr ay($lmdate, MYSQL_ASSOC)) {
$lm = $date['post_modified'];
echo $lm;
My out put is:
2007-10-03 12:55:19
I'd like the output to be just the date without the time:
2007-10-03
Thanks you,
HG
wordpress datebase in a while loop. Here's what I'm doing right now:
$lmdate = mysql_query("SE LECT post_modified FROM wp_posts WHERE
post_status = 'publish'");
while ($date = mysql_fetch_arr ay($lmdate, MYSQL_ASSOC)) {
$lm = $date['post_modified'];
echo $lm;
My out put is:
2007-10-03 12:55:19
I'd like the output to be just the date without the time:
2007-10-03
Thanks you,
HG
Comment