Is is possible to use Calendar component to select the month then be able to use some sort of scripting to pick the start and end of the month. Example: Select JUNE so the begining would be JUNE 1st and the END would be JUNE 30th. Then feed these values to the CALENDAR DATE RANGE this way they would select the month and then using the slider could select the range they wanted in the month and by using the calendar component they could see how the days of the week fall.
So is this possible? If so how? Thanks and have a great day.
Sure, you can set the Date Range component’s outer range just by setting its “Outer Range Start” and “Outer Range End” properties.
For a given month, you can find the beginning date of that month and the end date of that month using a java.util.Calendar object. Here is a script that demonstrates creating Date objects that represent the beginning and end of a month:
[code]from java.util import Calendar
month=1 # (Jan=0, Feb=1, …)
cal = Calendar.getInstance()
startDate = cal.getTime()
lastDayOfMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH)
endDate = cal.getTime()
print startDate, endDate[/code]
Hope this helps,