I am doing some reports and I want to get all dates in specific month, for example January 2014, and when I do this 'SQL':
SELECT datesInMonth WHERE month = 1 AND year = 2014;
I want to get this list:
2014-01-01
2014-01-02
2014-01-03
...
2014-01-31
If i do this 'SQL':
SELECT datesInMonth WHERE month = 2 AND year = 2014;
I want to get this list:
2014-02-01
2014-02-02
2014-02-03
...
2014-02-28
If I do this 'SQL':
SELECT datesInMonth WHERE month = 2 AND year = 2016;
I want to get this list:
2016-02-01
2016-02-02
2016-02-03
...
2016-02-29
Is this possible, or should I do my own table with dates for the next 100 years :)