Martin Vajsar wrote:I'd probably be inclined to do the conversion in Java, but of course it is doable in Oracle using the to_char() function:
See also Oracle's Datetime Format Models.
Edit: Oracle supports Java stored procedures, if you need to do a lot of processing in the database and are not that much familiar with PL/SQL, you might try them out, settign the thing up will take some learning too.
Martin - that is similar to what I had in mind when I asked if I would need to finagle the output - I had just not yet figured out the exact syntax to do it.
Thanks very much for the code, I will go with that for now.
I am familiar with Java stored procedures in pl sql - I have written a couple actually. I am much more familiar with PL SQL than java actually.
But you mention doing this conversion in the java. That interests me because I think I looked at this incorrectly in some sense. My understanding was that I can create the soap request in the pl sql, and the date for the security header MUST be in the format I give. So you are saying I can alter the java code so that it accepts the date in some other format? - I can make the java accept something like
<wsu:Created>3/8/2012 6:13:00.446294 PM </wsu:Created>
?
I know this is possible for parameter values I send in to the service <arg1>anydate</arg1> - etc
But since <wsu:Created> is part of the security header, I assumed this date format was all or none.
Is this assumption incorrect then?
Thanks