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

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Streaming local file from PHP while it’s been written to by a CURL process
I am creating a simple Proxy server for my website. Why I am not using mod_proxy and mod_cache is a

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or b

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

PHP & Java
Hello,

can PHP code be used inside java code?

Code: [Select]<SCRIPT LANGUAGE=&q

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

Word filter problem
Hello,

im trying to make a filter for words inputted in to my website but i want to store the

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