How can I setting parameters to query based on quarter date
问题 I need to find the start of the quarter startQ1,startQ2 ect. run a query that takes 6 query parameters. I dont really know a way of doing this. So if I can use a calendar to find that today is March1st (startq1) I wan't to run the query with the q1 array ... Hope that's clearer. Calendar cal = Calendar.getInstance(); java.sql.Date startQ1 = java.sql.Date.valueOf("2014-03-01"); java.sql.Date startQ2 = java.sql.Date.valueOf("2014-06-01"); java.sql.Date startQ3 = java.sql.Date.valueOf("2014-09