jeeva Posted February 2, 2007 Share Posted February 2, 2007 hi frnds, How to get the last date by using php? Link to comment https://forums.phpfreaks.com/topic/36736-get-last-date/ Share on other sites More sharing options...
The Little Guy Posted February 2, 2007 Share Posted February 2, 2007 last date of what? The month, year, week? Please explain more Link to comment https://forums.phpfreaks.com/topic/36736-get-last-date/#findComment-175216 Share on other sites More sharing options...
jeeva Posted February 2, 2007 Author Share Posted February 2, 2007 if current date is 02-02-2007 then it has to return 01-02-2007 Link to comment https://forums.phpfreaks.com/topic/36736-get-last-date/#findComment-175240 Share on other sites More sharing options...
chronister Posted February 2, 2007 Share Posted February 2, 2007 $new_stamp=mktime(0,0,0,date(m)-1, date(d), date(y)); echo date("m-d-Y",$new_stamp); prints out 01-02-2007 Link to comment https://forums.phpfreaks.com/topic/36736-get-last-date/#findComment-175243 Share on other sites More sharing options...
jeeva Posted February 2, 2007 Author Share Posted February 2, 2007 thanks guys......... Link to comment https://forums.phpfreaks.com/topic/36736-get-last-date/#findComment-175246 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.