java - How to get start and end date for a specific month and year -


I am creating a report in iReport

The user enters a date like 2014-09-14

Report 2014-09-01 and 2014-09-30

("Selected month and first day of the year" and "last day" selected months and Of the year ")

I'm trying to work with it

  new java.util.Date (new java.util.GregorianCalendar ($$). P {ds_endDate} .get year (), $ P {ds_endDate} .getMonth (), 1) .getTimeInMillis ()) // The end result should be java.util.Date  

but

Try it out:

  Calendar abc = New gregorian calendar (); System.out.println (abc.get is real i Ximm (Calendar DAY_OF_MONTH) + "and" + abc.get Fixed Minimum (calendar. DAY_OF_MONTH);  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -