Jump to content
We've recently updated our Privacy Statement, available here ×

Formating a date with pattern using oracle


Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...