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

Did you know?Explore Trending and Topic pages for more stories like this.
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

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But

Buggy registration system
Hey, I just started scripting in PHP, and I ran into a few problems.
Code: <?php
includ

How to schedule the a job?
Hi,
I have prepared a task ( i.e. a procedure is prepare the file and send the same to con

Using CSS to format MySQL query
Hi,

If i want to have a news page on my site, which displays all records of a table in descen

Not reloading page after php form submit
Hello helpful souls out there. You guys have come through for me in the recent past and I'm hoping s

Time-based image rotation script
I'm trying to write a PHP script that rotates an image based on what time of day it is. I want the

PHP / MySQL Associative Multidimensional Array:
Hello.

I have data in a MySQL Table that adheres to the below: (note, no index, could add if

Help If user voted, block them
On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i g

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

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