I am creating a report in iReport
The user enters a date eg. 2014-09-14
The report then needs to print 2014-09-01 and 2014-09-30
(\"First day of
I got it working by using some SQL in the query of the report and just printing that field
SQL looks like this
Select LAST_DAY('2014-09-14') lastDay,
DATE_ADD((DATE_ADD(LAST_DAY('2014-09-14') ,INTERVAL 1 DAY)) ,INTERVAL -1 MONTH) firstDay
Note: replace '2014-09-14'with input parameter on reprot eg. $P{dateEntered}