Page 1 of 1

How can i do this?

Posted: Tue Jul 07, 2009 3:15 pm
by billy_111
Hey,

I want to write PHP code to display something like to folowing:-

Code: Select all

Week Commencing July 13th
So what this is doing is looking at the week and displaying the first day. But this would chage if it was "1st" "2nd" and "3rd" if you know what i mean..

But is there any examples i can have a look at in order to achieve this..?

Thanks
Regards
Billy

Re: How can i do this?

Posted: Tue Jul 07, 2009 4:06 pm
by Skara
date()

Code: Select all

echo 'Week Commencing ' . date('F jS', $timestamp);
That what you were looking for?