Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
This is my first post in the forum.

I have an xml file with no of coloumns. One of the coloumn looks like this:
<INVOICE_TIME> 1899-12-30T16:26:00+04:00 </INVOICE_TIME>

When I try to store this values in Oracle database, it show only a date part ie.30-DEC-99.
I want to display only time part. How can i do it?
Posted
Updated 11-Jul-10 0:50am
v2

Storing time in oracle isn't an easy task, could you not store the time as a string type nchar or something similar?
 
Share this answer
 
got the answer

Cdate(Format(INVOICE_TIME,"hh:mm:ss") as INVOICE_TIME1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900