date("Y-m-07")?????

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tamiya
Forum Newbie
Posts: 14
Joined: Mon Feb 06, 2006 7:19 am

date("Y-m-07")?????

Post by tamiya »

Just a quick question:
Please correct me if I'm wrong. I am presuming that

Code: Select all

date("Y-m-07");
means the 7th day of the current month....


If that is not what it stands for, please tell me what it does.

But, if that IS what it means, tell me that too, cause then I might have solved a HUGE problem...

Thanks
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Here's a good resource that answers your question: http://www.php.net/date
tamiya
Forum Newbie
Posts: 14
Joined: Mon Feb 06, 2006 7:19 am

Post by tamiya »

thanks.

but, i've looked at that, but that doesnt really solve my problem. Maybe i'm being ignorant of the obvious, but all I need is a yes it is the 7th day, or now it is not the 7th day........
tamiya
Forum Newbie
Posts: 14
Joined: Mon Feb 06, 2006 7:19 am

Post by tamiya »

dont worry, i've figured it out for myself. a simple echoing out of the query did the trick.

yes, it shows the 7th day of the current month of the current year
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

it will output

2006-05-07

tomorrow it will output

2006-06-07
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Re: date("Y-m-07")?????

Post by harrisonad »

tamiya wrote:7th day of the current month....
yeah and it will always be forever unless you change '07' to 'd'
Post Reply