How to get the previous months last date....


Posted on 16th Feb 2014 07:03 pm by admin

Here's my wittle problem. I suck at working with dates.

So today is 10/20/2009, i need to figure out how to use

Code: $lastmonth = date("m-d-Y", strtotime(" "));

in order to get 09/30/2009

Thanks!

No comments posted yet

Your Answer:

Login to answer
299 Like 47 Dislike
Previous forums Next forums
Other forums

fire away
i launched about 4 months ago as a lagit co. i have 2 paying clients, 1probono, 1 side progect, and

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

Remove directories not empty
hi,
i have an array that contains some names (1,4,6,56...). Every integer is a name of a folder.<

Pro-rata Billing in Periodic Billing for Rental
Hi guys,

We have a situation, where a rental contract starts at the mid of the month say

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

What's best way to get a user's Word doc converted to simple html and images?
Hi all,

I was just wondering if anybody has any experience of this.
Basically, I'm buildin

New to PHP and just trying to understand a little code.
I hope I'm not annoying anyone or breaking the rules but I was wondering about this bit of code righ

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash