Re: [PHP] Simple date question

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Roy W" claimed that: |If I have: | |$firstdate = "2003-06-28"; | |then how can I get $firstdate plus 4 days? | |Thanks! It looks like that date may have come from a [mysql] database. If that's the case, you should be able to add 4 days in your query, by using DATE_ADD() check ht

Re: [PHP] Simple date question

2003-07-30 Thread Kevin Stone
"David Nicholson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 19:18, lines prefixed by '>' were originally written by you. > If I have: > $firstdate = "2003-06-28"; > then how can I get $firstdate plus 4 da

Re: [PHP] Simple date question

2003-07-30 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 30 Jul 2003 at 19:18, lines prefixed by '>' were originally written by you. > If I have: > $firstdate = "2003-06-28"; > then how can I get $firstdate plus 4 days? > Thanks! date("Y-d-m",mktime(0,0,0,substr($firstdate,5,2),substr($firstda

[PHP] Simple date question

2003-07-30 Thread Roy W
If I have: $firstdate = "2003-06-28"; then how can I get $firstdate plus 4 days? Thanks!

Re: [PHP] simple date question

2003-01-20 Thread Justin French
why not just call date('m') to get the month? justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple date question

2003-01-20 Thread Rick Emery
Why not just get the month with another call to date("m") as well? Then call date("W) to get the week, if that's required? - Original Message - From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 2

[PHP] simple date question

2003-01-20 Thread adrian [EMAIL PROTECTED]
this is pretty simple but my brain's not working I get the numerical value of a week in the year thus e.g $today = date("W"); gives 4 .so this is the 4th week of the year. I want to get the month based on this number. e.g 4 should be january. 7 will be feb etc.. i'm not bothered about being to

[PHP] Simple date question

2002-08-12 Thread Dave Leather
I hope this is a simple date question I am using an MSSQL database, and have a datetime field called start_date and end_date. When I use query analyser and do a SELECT start_date from CF_#orders The format is 2002-08-11 12:13:44.000 In Php - my code is start_date; ?> The format is now Aug 1