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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datetime selection help

Status
Not open for further replies.

Frenchfry

Programmer
Dec 26, 2011
3
0
0
US
Hello again,

I have a field thats is datetime within me proc.
The Start and End Dates reside at the top of the proc.

I need help changing the datetime to date allow me to do me selection.

Thanks in Advance.
 

Perhaps you could use the TO_CHAR() function.
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thanks
t1.close_time between to_date(dt1,'dd/mm/yy hh24:mi:ss') and to_date(dt2,'dd/mm/yy hh24:mi:ss')
 
trunc(t1.close_time)

will strip out the time element

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top