xionhack Posted January 12, 2012 Share Posted January 12, 2012 Hello! I want to be able to make a code that tells me how many saturdays have passed till today. I've tried a couple of things but nothing. Any help?! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/254856-how-many-saturdays-have-passed/ Share on other sites More sharing options...
jcbones Posted January 12, 2012 Share Posted January 12, 2012 From when? Within the same year? I would start by determining the amount of weeks that have passed, as there is only 1 Saturday per week. A few simple checks to see if today is a Saturday date, or if the starting day is a Saturday. You would be well on your way. Quote Link to comment https://forums.phpfreaks.com/topic/254856-how-many-saturdays-have-passed/#findComment-1306783 Share on other sites More sharing options...
xionhack Posted January 12, 2012 Author Share Posted January 12, 2012 Hi! thanks for your reply. Is the saturdays in this month. I'll try to work with what u told me! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/254856-how-many-saturdays-have-passed/#findComment-1306784 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.