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

Need Help In Moditying TO_DATE Function? Help

Status
Not open for further replies.

bmann

Programmer
Oct 8, 2002
128
US
I have a date from SQL server that looks like this:

2004-09-11 07:51:44.533000000


How do I get this to work with this To_Date Function which looks like this:

"to_date:)TIMESTAMP,'YYYY-MM-DD HH24:MI:SS')"


This function works when the date looks like this:

2004-09-09 18:18:33


How do I solve this problem? Thses dates are exported from sql server. Thanks I would appreciate anyone's help.
 
If fractional part of a second can be discarded, you may just use
Code:
to_date(substr(:TIMESTAMP,1,19),'YYYY-MM-DD HH24:MI:SS')
 
Thanks nagornyi. That worked. My background is SQL server but I am starting to learn Oracle. I apppreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top