Unix Technical Forum

Date Formats

This is a discussion on Date Formats within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, Here is the date format coming in on the input file: Apr 7 2009 12:00AM So, if the ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2008, 07:14 PM
Mtek
 
Posts: n/a
Default Date Formats

Hi,

Here is the date format coming in on the input file: Apr 7 2009
12:00AM

So, if the AM / PM is coded there, how can I put that into the format
string? I'll be using this in an external table setting...

TO_DATE(Apr 7 2009 12:00AM,'Mon DD YYYY HH12:MI..........

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-13-2008, 07:14 PM
Urs Metzger
 
Posts: n/a
Default Re: Date Formats

Mtek schrieb:
> Hi,
>
> Here is the date format coming in on the input file: Apr 7 2009
> 12:00AM
>
> So, if the AM / PM is coded there, how can I put that into the format
> string? I'll be using this in an external table setting...
>
> TO_DATE(Apr 7 2009 12:00AM,'Mon DD YYYY HH12:MI..........
>
> Thanks!

TO_DATE('Apr 7 2009 12:00AM' ,'Mon DD YYYY HH12:MIPM')

hth,
Urs Metzger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 02:40 PM
Mtek
 
Posts: n/a
Default Re: Date Formats

On May 13, 12:54*pm, Urs Metzger <u...@ursmetzger.de> wrote:
> Mtek schrieb:> Hi,
>
> > Here is the date format coming in on the input file: * Apr *7 2009
> > 12:00AM

>
> > So, if the AM / PM is coded there, how can I put that into the format
> > string? *I'll be using this in an external table setting...

>
> > TO_DATE(Apr *7 2009 12:00AM,'Mon DD YYYY HH12:MI..........

>
> > Thanks!

>
> TO_DATE('Apr *7 2009 12:00AM' ,'Mon DD YYYY HH12:MIPM')
>
> hth,
> Urs Metzger



Thank you very much.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com