Hi Leela,
Once stored in a data item, you can directly use the calculation stage to manipulate the query. Or you can directly manipulate the query in the collection itself. If you want to add the From/to date in the query at a specific location, try using the InStr function which will give you the location of the text after which you want to replace. You an also use the Replace function for direct replacements.