Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Time Out of Impromptu

Status
Not open for further replies.

thornbe

Technical User
Feb 3, 2004
1
0
0
US
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?

Thanks,

Tim H.
 
Add the following filter condition;

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top