Hello @Ramaswami ,
For this use case, Instead of directly hardcoding the date in query activity you can use a javascript activity in the start to initialize the variables.
Like This:
Then you can call these variables in the query activity like this:
and then finally call the same variable in the second javascript activity to get the values like this:
And this is how the complete workflow will look like:
Let me know if that helps