Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Its a long time since I did any SQl and it was mostly DB2 rather than Oracle, but I seem to remember a peice of SQL something like ...'somedatestring' AS DATE... which as I recall seem to be able to handle just about any date format I threw at it. Does Oracle not have such a thing?

I also seem to remember using something like ...CAST( 'stringdate' AS DATE) DATETIME...

Update:I have since tried to verify my (apparently failing) memory, and have been unable to do so.

I tried to look out some of my old DB2 manuals but it seems they got 'lost' during my last house move, and I had a mouche around on the web, also without success.

I distinctly remember being very proud of a peice of C I wrote to pre-format TIMESTAMP fields prior to passing them on to DB2 and when I showed it to a collegue, being show something that did everything my routine did and more.

My best guess, in the absence of any supporting evidence to the contrary, is that this must have been some local innovation (I was working inside IBM at the time) - perhaps a local grown stored procedure or something.

Sorry for my flaky memory.

The li'l grey cells aren't what they once were--perhaps they never were to start with!¬(


What's this about a "crooked mitre"? I'm good at woodwork!

In reply to Re: Computing Oracle date format from a date string by BrowserUk
in thread Computing Oracle date format from a date string by vladb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (6)
    As of 2019-05-21 21:38 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Do you enjoy 3D movies?



      Results (138 votes). Check out past polls.

      Notices?
      • (Sep 10, 2018 at 22:53 UTC) Welcome new users!