Page 1 of 1

date help..

Posted: Mon May 22, 2006 4:24 am
by saranda
is it posible to get the day of the week from having day month and year

for example ... on this date 25.12.2006 to know what day of the week is .

thnx.

Posted: Mon May 22, 2006 5:06 am
by GM
yup - look at the Date() function, and the parameters it takes to format the output.

You need "D" (gives you Mon, Tue, ... Sun) or "l" (lowercase L) gives you "Monday, Tuesday... Sunday".

Re: date help..

Posted: Mon May 22, 2006 5:53 am
by xpgeek
saranda wrote:is it posible to get the day of the week from having day month and year

for example ... on this date 25.12.2006 to know what day of the week is .

thnx.

Code: Select all

echo date("l",  strtotime('25.12.2006'));