Convert multi date to a string

software development

#1

hellllloooooooo dreamhosters…

i have a query that has multiple select dates

i could select three dates
Jun 12, 2007, Jun 13, 2007, Jun 16, 2007

When inserted into the database, I would like to insert as

Jun 12, 13, 16

thus removing the addl. Jun’s and the 2007

does anyone here know how to do this?

here is my code

$date = mktime(0,0,0);
for ($d=0; $d<365; $d++)
{
$d1 = date(‘M d Y’, $date);
$d2 = date(‘M d Y’, $date);
echo “$d2\n”;
$date = strtotime(’+1 days’, $date);
}

echo “”;