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

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Change Sort Order to Display Newest File First
Hi Guys,

I have a page that sorts the contents (PDFs) of a directory and displays them on the

HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen

Multiple submit forms inside a mysql array page
Hi all,

Im having trouble to get the beneath script to work the thing i can't seem to get wor

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an

Merger of 6 sister companies under one flagship company after go live
Dear Experts,
I need one help regarding Merger of sister companies of same group. currently we

Text to picture Generator
Hello, i have found this script and it works really good^^ But i have one problem, i would like to c

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

Passing variables with pagination - iterating through unique id per link
Hi everyone,
I have seen a few topics like this one. Still cant find the specific thing, so I am

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