I have a need to run a report and extract data (i.e. "Start Date/Time" from any give date 8:00am to 7:59am (following day). Is there a function that allows the extraction of Time only?
Start_Date_Time between to_date(concat(date-to-string(?Prompt?),' 08:00'),'DD/MM/YYYY HH24:MI') to to_date(concat(date-to-string(add-days(?Prompt?,1)),' 07:59'),'DD/MM/YYYY HH24:MI')
I have tested the code and it works, but for any reason if this gives an error check the 'DD/MM/YYYY HH24:MI' format to see if it should be say 'MM/DD/YYYY HH24:MI' instead.
Note : ?prompt? should be a date prompt and not date-time prompt.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.