if you are using calendar component the the output of the calendar component is in datevalue()
we have to convert that date 1st
formula f6= text(f1,"MM/dd/yyyy")..............(09/15/2014)
f7=text(f1,"MM.yyyy")....................(09.2014)
after the we have to get next upcoming 12 month f9= text(eomonth(f6,11),"mm.yyyy")........(08.2014)
and you the calmonth between operator while filter the query.
startdate = f7
enddate = f9
map this to prompt