| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Rene Fournier | Date: | October 17 2008 8:33pm |
| Subject: | FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | ||
| View as plain text | |||
Okay, I realize that query won't work, but that's essentially want I want to do: Add four months to the current date, then return the first day of that month, e.g.: floor ( 2008-10-16 + 4 months ) = 2009-02-1 Is there a nice SQL way of achieving this? ...Rene
| Thread | ||
|---|---|---|
| • FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Rene Fournier | 17 Oct |
| • Re: FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Rob Wultsch | 17 Oct |
| • Re: FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Ian Christian | 17 Oct |
| • Re: FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Rob Wultsch | 17 Oct |
| • Re: FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Rob Wultsch | 17 Oct |
| • Re: FLOOR(DATE_ADD(CURDATE(), INTERVAL 4 MONTH)) -- ? | Dan Nelson | 17 Oct |
