Hi Praveen,
As per my understanding you can use another way around also. What I understand from you question, you need the output based on some shift timing. So for this you may configure the time period from SAP MII menu and pass it to the query.
Step1: either create a shift or you can modify the existing shift from the MII Menu.
Step2: now in the workbench, set the "time period" in the "date range" tab within the query.
If you use time period then you have no need to update the date before querying, it will automatically take the current date and will give the output of the last 24 hrs.
Hope it will help you.
Regards,
Suman