electrix Posted March 15, 2007 Share Posted March 15, 2007 I was wondering if anyone knows how to make "mktime" list all the days between the 20th every month? Instead of the standard month from 1 to 31 I want it to display from 20/1 to 20/2 and so on.... Thnx Link to comment https://forums.phpfreaks.com/topic/42836-mktime/ Share on other sites More sharing options...
zq29 Posted March 15, 2007 Share Posted March 15, 2007 Could you not +20 to the day parameter of mktime() inside your (assumed) loop, this should offset each date by 20 days... Link to comment https://forums.phpfreaks.com/topic/42836-mktime/#findComment-207940 Share on other sites More sharing options...
electrix Posted March 15, 2007 Author Share Posted March 15, 2007 Could you not +20 to the day parameter of mktime() inside your (assumed) loop, this should offset each date by 20 days... I don't understand what exactly you mean.. Yes it's a loop.. But no I don't want to offset the date... I don't want to make day 1 to be displayed as day 21. It's for a "payroll-rapport". Every 20th it's payday so that means that I want to display hours (that's inserted in mysql) between, for example, the 20th January to the 19th Februari..ALL the days between and with these dates. In one table its 20th januari and forward to 19th februari. The next table its 20th februari to the 19th march. The next table its 20th march to 19th april. Sorry if I'm hard to understand... Link to comment https://forums.phpfreaks.com/topic/42836-mktime/#findComment-207961 Share on other sites More sharing options...
electrix Posted March 15, 2007 Author Share Posted March 15, 2007 No-one that can help me? :'( Link to comment https://forums.phpfreaks.com/topic/42836-mktime/#findComment-208000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.