Script for getting dates week to week ttpe thing....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Borojimmy
Forum Newbie
Posts: 12
Joined: Fri Mar 20, 2009 2:08 pm

Script for getting dates week to week ttpe thing....

Post by Borojimmy »

Ok,

I am setting up an admin section for a client and they have two week formats... Tuesday to Tuesday for invoicing and Friday to Friday to send out bookings to staff.

Now I can get the date and manipulate the date to find tomorrow next week etc but this is a little different,

I need to be able to get todays date work out the 7 days before and after that date and discover which date the Tuesday falls on and which date falls on a Friday.



I really dont need a full script etc from people, as I always thinks that's cheating a bit - If I learn by example or work my way through a problem I am more likely to remember next time!
but if someone could point me to a tutorial or something similar that could help me I would be very grateful.


Jimmy
Post Reply