Formating a date with pattern using oracle

By: Martin Phee - mphee
Formating a date with pattern using oracle
2002-11-04 06:59
I have two Oracle date fields. Open_date, close_date. If I use a pattern of "MM/dd/yyyy" it works fine, but when I add HH:mm:ss I'm not getting the the time.

I worked around by doing a to_char on the field and putting it into the format I want.

I tried to do not pattern and all I got was '2002-11-02'.

pattern="MM/dd/yyyy HH:mm:ss" isn't working.
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness