Using MySql
I have the following variables (filled in with "3" and "2014" as an example):
SET @Month = 3;
SET @Year = 2014;
Desired Results
I'd like to get the first day of the month and the last day of the month separately,
using the variables (avoiding any NOW() or CURDATE() formulas), in %Y-%m-%d format. In other words:
2014-03-01
2014-03-31
I've tried many possibilities of the following base functions, plus some I've deleted
SELECT LAST_DAY(`SELECT(@Year)-03-01`)
SELECT LAST_DAY('@Year-@Month')
SELECT DATE_FORMAT(?, '%Y-%m-01')