Oracle DateTime Truncate problem

Hi,

I am using oracle 10g database server.
I want to truncated the date from Timestamp.

When i use

TRUNC(I.DUE_DT) function

or

TO_DATE(TO_CHAR(I.DUE_DT,'DD-MON-YY') , 'DD-MON-YY') DUE_DT

it is showing only date without time from timestamp.

But in iReport it is always showing Data & Time.

Alauddin
alauddinctgbd's picture
Joined: Aug 4 2006 - 8:37pm
Last seen: 17 years 1 month ago

1 Answer:

Set the text field pattern to the date format you want as output, e.g. "dd-MMM-yy". You can find a pattern reference [url=http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html]....

HTH,
Lucian
lucianc's picture
86899
Joined: Jul 17 2006 - 1:10am
Last seen: 5 hours 20 sec ago
Feedback