Page 1 of 1

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

Posted: Wed May 31, 2006 4:31 am
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

Posted: Wed May 31, 2006 4:47 am
by timvw
Here's a good resource that answers your question: http://www.php.net/date

Posted: Wed May 31, 2006 4:56 am
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........

Posted: Wed May 31, 2006 5:04 am
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

Posted: Wed May 31, 2006 5:06 am
by JayBird
it will output

2006-05-07

tomorrow it will output

2006-06-07

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

Posted: Wed May 31, 2006 8:44 pm
by harrisonad
tamiya wrote:7th day of the current month....
yeah and it will always be forever unless you change '07' to 'd'