Asheeown Posted February 25, 2007 Share Posted February 25, 2007 I was wondering if their is a date format that can tell you the last day of a given year and month Link to comment https://forums.phpfreaks.com/topic/40013-solved-last-day-of-the-month/ Share on other sites More sharing options...
genericnumber1 Posted February 25, 2007 Share Posted February 25, 2007 .... t? http://php.net/date Link to comment https://forums.phpfreaks.com/topic/40013-solved-last-day-of-the-month/#findComment-193515 Share on other sites More sharing options...
Asheeown Posted February 25, 2007 Author Share Posted February 25, 2007 Thats the current month, how can I create a string with the month and the year in it to get the number of days for that month? Link to comment https://forums.phpfreaks.com/topic/40013-solved-last-day-of-the-month/#findComment-193516 Share on other sites More sharing options...
magic2goodil Posted February 25, 2007 Share Posted February 25, 2007 date("t", strtotime("January-2007")); //This for the last numerical day of January 2007 date("l", mktime(0,0,0,1,date("t", strtotime("January-2007")),2007)); //This for the last weekday name in January 2007 Link to comment https://forums.phpfreaks.com/topic/40013-solved-last-day-of-the-month/#findComment-193517 Share on other sites More sharing options...
pixeltrace Posted February 25, 2007 Share Posted February 25, 2007 this might help http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html Link to comment https://forums.phpfreaks.com/topic/40013-solved-last-day-of-the-month/#findComment-193518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.