vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Format Date in drop down menu

Susan
05-25-2006, 01:39 PM
Okay, I am trying to get a drop down list in a form to display in a certain format.

(eg):
10 June (Friday)

Of course I'm using the php date() function but I want it to show in the format above for the dates for the next two months. So the dropdown would display like this:

10 June (Friday)
11 June (Saturday)
....
..
and so on until it displays up to two months after the current date or 'now'.

tia :)

sandman
05-25-2006, 04:31 PM
humm, maybe this will help
$timestamp = time();
while($timestamp < strtotime('+2 month'))
{
echo date('Y-m-d',$timestamp);
$timestamp = strtotime('+1 day',$timestamp);
}

;)


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum