DATE type returned from function does not return the time component

Hi,
I'm dealing with a strange problem. I have a PL/SQL function (running on Oracle 8.1.4.7) which returns a DATE value. Like we all know the DATE datatype includes a date component and a time component.
The function I used for testing is like this:
FUNCTION ReturnDate return Date is
dReturn Date;
Begin
select sysdate into dReturn from dual;
return dReturn;
end ReturnDate;
When I call this function from .NET using ODP.NET the date value I get does not have the time component included only the day-month-year components.
This is a code-snippet that calls the function :
command.CommandText="Schema.ReturnDate";
command.CommandType=CommandType.StoredProcedure;
command.Parameters.Add("Return_Value",
OracleDbType.Date,0,ParameterDirection.ReturnValue);
command.ExecuteNonQuery();
I use the OracleDbType.Date type which I think is the most logical choice, because the type in the Database is after all DATE.
However this does not include the time componet. But if I change the OracleDbType.Date to OracleDbType.TimeStamp I get the time component. I'm not happy with this "hack" because I'm not sure what will happen when we upgrade our version of the Database to Oracle 9i which uses the new TimeStamp datatype.
Is this a bug that the OracleDbType.Date does not include the time component??

How do you examine the output Date value?
If it is from the string, then the time components will
not show because the NLS_DATE format in the client
machine does not contain the time components.
In American, the Date format is 'DD-MON-RR' by default whereas, the TimeStamp format is 'DD-MON-RR HH.MI.SSXFF AM' by default.
Can you take a look at the time components from the OracleDate by accessing the time properties, eg. OracleDate.Hour, OracleDate.Minute..etc to see if the time values are there?
Thanks
Martha

Similar Messages

  • The serial number on my new boxed photoshop bought from Staples does not match the required number of numbers to install. Help

    The serial number on my new boxed photoshop bought from Staples does not match the required number of numbers to install. Help

    You’ve posted your comment in the Adobe Creative Cloud forum.  Adobe Creative Cloud doesn’t use serial numbers.  Does this page help with determining what to do with the number you have:
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Credit From AdvCollection does not do the Accounting from AutoAccounting

    We are using AutoInvoice to import invoices from legacy system.
    During the import we have the AutoAccounting set to derive the gl accounts
    from the Transaction Type (which is set to a Suspense account
    so that the invoices do not post to the GL again as they have already been posted on legacy system).
    After the imports the invoices, we are chaning the AutoAccounting to derive the gl accounts using the
    Inventory Item.
    We have the profile option, AR: Use Invoice Accounting For Credit Memos set to NO.
    Tried setting this profile option both at the SITE level and application (RECEIVABLES and COLLECTION) level to NO.
    We create a credit memo in Advanced Collections which works fine.
    The problem is that the credit memo is not deriving the accounting from AutoAccounting, it is deriving from the invoice.
    Note : A manual credit created from Receivable is using the accounting from auto accounting. Only when the credit is created from collection it is not using the auto accouting rules.
    How do we make the credits created from Advanced Collection use the accounting from AutoAccounting and not from the INVOICE.
    Thanks
    Shandrila
    Edited by: Shandrila on Oct 4, 2009 3:25 PM

    I have got a solution from Oracle via a patch which solved the issue.
    - Shandrila

  • New sequence from clip does not apply the Pro Res Compressor...

    I wanted to test Premiere to see if it could handle Pro Res videos (which after some initial research, I read that it can). So to see for myself, I imported a Pro Res 422 video, right clicked the clip and selected "New Sequence From Clip"... But it does not seem to apply the Pro Res 422 compressor...
    The video is originally HDV and I converted in Compressor to 422...
    I know it may be pointless to convert HDV to Pro Res (not to mention that the HD clips weights 45 MB and the converted 205 MB, although in FCP the pro res is less taxing on the system as opposed to HDV, not sure if the same applies with Premiere)... But I will be receiving from pro res files soon, and I want to make sure they work properly in Premiere.
    Thanks

    Being a recent FCP devotee I will see if I can interpret what this person expected.
    By dropping a Prores 422 clip on the Make Sequence button, I will hazard a guess that he expected to see a Prores 422 sequence created. In the FCP workflow that  is the desire sequnce to play that clip in. What he is seeing in the second image (the sequence settings) is an AVCHD 1080 anamorphic sequence. And hes not sure why its not Prores.
    Im sure once he reads the links Todd provided he will understand he is not in Appleland anymore and that there is a different workflow with PrP.
    How did I do?   ;-)

  • I purchased Lightroom from Amazon.  When I go to register, the license key from amazon does not match the fields in the software.  I am stuck.

    I need help registering Lightroom.  Purchased from Amazon.  The license key Amazon provided did not match the fields when activating the software.  Help!

    Maybe Amazon provided a redemption code not a license key:
    https://redeem.licenses.adobe.com/getserial

  • On Tab function does not set the value in ADF

    Hi,
    I have a table with a columns as 'unit price',quantity and 'Extended amount'. The last field is a calculated field (unit price * quantity). I am trying to set this field when I tab from unit price field to some other field. But the value is not at all getting set to this field.
    Hereis the peice of code.
    <af:inputText value="#{row.RebillUnitPrice}"
    required="#{bindings.RebillInfoView3RebillItemsView1.attrDefs.RebillUnitPrice.mandatory}"
    columns="15" binding="#{CRIIF001.inputText3}"
    id="inputText3" autoSubmit="true"
    valueChangeListener="#{CRIIF001.setExtendedAmount}"
    >
    Auto submit is true and I am calling a value change listener which calls the set method. Though I could see the calculated value, it is not getting set to that column when I tab.
    Please help me in solving this issue,.
    Thanks,
    Venki

    Hi,
    does the page refresh, or do you use PPR? Note that autosubmit in ADF Faces don't automatically refresh the table and need you to set the partial trigger on e.g the table
    Frank

  • Yosemite: Saved search from Spotlight does not work the same

    Hi,
    I have various Logic Pro folders throughout my computer and want to create a Saved Search that brings all and only the Logic project files together into one place.
    There's a couple of catches: the Logic file extension has changed over the years with the various application updates.
    It would be nice to create a Smart Folder/Saved Search with something like File Extension:logic OR File Extension:logicx OR File Extension:lso
    However if you just add these search criteria as separate lines, it appears they are "AND" filters so nothing shows up at all.
    I seem to remember older versions of Smart Folders allowing you to have much more control over boolean search parameters.
    After a bit of online investigation I discovered that you can do some more complex searches using Spotlight and then save it as a Smart Folder or Saved Search.
    In Spotlight I used:
    Kind:Logic -.0 -(crashed) -.cst -.pst -.prf -.patch -.logikcs
    This cleaned out all the extra unneeded files and backups that are associated with Logic and just displayed only my desired .logic, logicx and .lso files.
    Awesome! Then I saved it as a Saved Search in the sidebar.
    Which doesn't work. Or at least the extra flags don't work. All I am seeing is the Kind:Logic again.
    This is how the Spotlight search translates across into the Saved Search window (I can scroll across to see the extra flags). Any good ideas or workable solutions? Thx!

    >
    fromObject in the code above is a key (String) that I retrieve from the OrderedHashtable and clone it using the code above.No. How could that code possibly clone a String? Where are you telling it what the new String's contents should be?
    (HINT: Nowhere.)
    I guess there is a work around where I can check if the cloneClass is an Instance of String and just do fromObject.toString(), but I was curious to know if there was a change in the way class.newInstance() works in Java 1.5No, it has not changed.

  • Which is the most up to date version of FF that does not include the plugin-container ?

    Hi Good People at Firefox
    Firstly may I say that you have created a great product which kicked MS's ass for a long time however I'm now concerned that the latest updates are pushing my poor old desktop to the limit.
    Upgraded to 4 today and the dreaded plugin container loaded yet again. On a PC with 512k memory and FF's notoriously bad memory management (i.e. it doesnt release memory when tabbed windows are closed) the plugin container is the last thing I need.
    So can you tell me which is the most up to date version of FF that doesnt include the plugin-container option ? i.e. the last version of Firefox before plugin container.
    I think it was version 3.?? but now I cannot revert to the previous installation to find out.
    Thanks
    Michael Dalton

    You can disable the plugin-container in any Firefox version that uses it.
    * http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    You can set the pref <b>dom.ipc.plugins.enabled</b> to false on the <b>about:config</b> page to disable the plugin-container process (OOPP)
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • The battery indicator in mountain lion does not show the time left!

    I have updated to Mountain Lion today and i noticed that the battery indicator on the top bar only show percentage of the battery, and it don't have the option to show the time left for recharge or to the total discharge of the battery.
    The only way to show the time left is to clic on the meter itself.
    Any ideas?

    I'm going to submit a complaint via http://www.apple.com/feedback/macosx.html.  I hope others do the same.

  • How Oracle JDBC driver determine DATE data type parameter if it is not specified

    Hello,
    Oracle JDBC driver determine the DATE data type of parameter correctly without any typecasting.
    Example:
    ps = conn.prepareStatement("SELECT ? FROM DUAL");
    ps.setObject(1, Date.valueOf("2014-01-11"));
    How Oracle JDBC driver determine the DATE data type of parameter.
    Thought?
    Regards,
    Vinayak

    Oracle JDBC driver determine the DATE data type of parameter correctly without any typecasting.
    Example:
    ps = conn.prepareStatement("SELECT ? FROM DUAL");
    ps.setObject(1, Date.valueOf("2014-01-11"));
    How Oracle JDBC driver determine the DATE data type of parameter.
    Your question isn't clear. If the driver is doing it correctly what PROBLEM are you having? What exactly do you consider 'correct'? What results are you getting? What driver name and version are  you using? What Oracle DB version are you using?
    For the code you use above the 'Date' you specify is a java.sql.Date instance
    http://docs.oracle.com/javase/8/docs/api/java/sql/Date.html#valueOf-java.lang.String-
    public static Date valueOf(String s)
    Converts a string in JDBC date escape format to a Date value.
    Parameters:
    s - a String object representing a date in in the format "yyyy-[m]m-[d]d". The leading zero for mm and dd may also be omitted.
    Returns:
    a java.sql.Date object representing the given date
    The JDBC Dev Guide shows that is mapped to an oracle.sql.DATE
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/datacc.htm#g1028145
    Oracle DATE datatypes have both date and time components. Depending on the JDBC driver version and DB version you are using an Oracle date could be mapped to a Java Date (which does NOT have a time component) or, for current versions, would be considered a timestamp..

  • Creating pdf from clipboard does not import images or formatting

    Creating PDF from clipboard works perfect in acrobat X however in acrobat XI no images are imported and the text just defaults to times roman font. My wife uses acrobat for her craft patterns and copies from the web all the time with no issues in Acrobat X. She tried it on Acrobat XI and it just looks like garbage. The text is there but the images that were copied along with the text are not. I have examples that she did using the exact same clipboard in both X and XI.

    Bill@VT wrote:
    I guess I must not understand how you are transferring the items to the clipboard. Is the browser the same one you used with AA X?
    Yes, I used the same browser (Chrome) with AA X and AA XI.
    Bill@VT wrote:
    When I did it with AA XI, I used the mouse (on a PC) to select the text and figures in my browser and copied that info to the clipboard (ctrl-C on the PC and I assume similar on the MAC).
    Yes, the procedure for copying info to the clipboard is similar for a Mac and a PC. I select the info (in this case, text and graphics) with the mouse, and can copy it to the clipboard with either Command-C (Mac equivalent of ctrl-C), or by right-clicking on the highlighted info and choosing "copy" from the pop-up window.  I do not have to use Print Screen in conjunction with this procedure. If I use Print Screen, it copies everything that my monitor displays and the results of a paste are an image.
    Is there something I am missing about getting the web page parts wanted to the clipboard? If you clip the items into a graphics packages, does the graphics show up as desired?
    No, you are not missing anything. All of the web page parts are in the clipboard. The problem is that only the text is showing up when I use the create PDF from clipboard option in AA XI. I do not have a graphics package installed; however, if I paste the clipboard contents into Word, both the text and graphics show up.
    I checked the PDF created with my AA XI and found the text as text and the the graphic as graphic, not simply a graphic as you suggested. Is it possible the graphic is shown with a place holder or just space for the graphic. If that is the case, check the preferences that you have "view large images" turned on.
    As I explained ad nauseum, the PDF I try to create with AA XI using create PDF from clipboard does not include the graphics; it only has the text. I just checked the preferences and "view large images" is turned on. I could not find any other preference settings that would seem to help with the problem I am having.
    I can paste the clipboard contents directly into Word and print the document to a PDF. When I do that, though, I usually have to spend a lot of time editing the Word document, because the contents are not in the same format. The paragraphs are usually squashed together, or the photos are too large and I have to change the size. This just takes up more time than I have to spend.
    The bottom line is that it seems to me Adobe must have changed something in the Mac version of AA XI that causes it to not work the same way it does in AA X. The PC version is obviously okay, because you are able to get the feature to work.
    I guess I am going to have to give up on this problem and stick with using AA X.
    Thanks again for all your help.

  • Deleting emails from Gmail does not delete them from BB

    HI,
    Just bought a brand new BB 8830 World Edition and using Gmail. Deleting emails from the BB works just fine and Gmail is being updated. But deleting emails from Gmail does not delete the corresponding email from the BB.
    On the BB, there is an option "Mailbox and Handheld" that works just fine but there is no such thing on the Gmail options.
    Is this a bug or a normal way of doing things? It would be quite abnormal to having to manually delete your emails on the BB that have already been deleted on Gmail; it's just deleting twice the same email.
    I would be grateful to anyone who can provide an answer.
    Regards.
    Springtime.

    You can delete mails from your handheld as well as from Gmail server which I guess solve the issue for you. To be able to do so check the following options -
    Messages
    Options
    Email Reconciliation
    Deelete On: Mailbox & handheld
    In place of Mailbox & handheld you also select Deelete On: Prompt. This is will give prompt wheneve you'll delete any mail and give you options what to do.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Print range does not print the last page in the range.

    Adobe Reader for New IPAD - The print range function does not print the last page in the range. For example, if you enter a print range of 2-18, pages 2-17 print and page 18 does not print.  Also, if you enter a print range of 9-9, page 8 prints and page 9 does not print.

    I have the Epson 4540 printer. I don't know for sure if it connects via AirPrint.  I didn't do any thing to set up Air Print.  The printer is attached directly to my network router and it shows up IPad apps.  I have not printed docs from other apps, but I will give it try and let you know.
    Christopher J. Bilcz
    [email protected]

  • WCF returning "The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)"

    I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
    Does anyone have any suggestions on how to solve this probelm?
    Here is the error:
    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">

    I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
    Hi,
    I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
    {"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
    PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
    5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
    0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
    Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
    I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
    I do have windows Activation Features installed and I am using .Net Framework 4.
    Thanks
    Sofia Khatoon

Maybe you are looking for

  • Bootcamp manager won't open in Windows 8.1.

    I've installed bootcamp on my iMac but the trackpad touch-to-click or multi-gesture functionality doesn't work. The odd thing is that the functionality works for a few moments after I've logged in, but it doesn't work once the account is fully logged

  • N8 Symbian Belle update problem

    Hello Anna on the phone using the software installed on the N8 025 007. Belle would like to install the script, but there are no recent updates on both the computer and on the phone. How do I cross the Belle software? Mustafa Kaplan Keşkelerin yeri

  • SSl certificate not available in the protocols properties

    Hello, I try to use SSL encryption on SQL 2008R2. I've bought a SSL 123 certificate from Thawte. I've installed this certificate in the MMC certificate snapin (personal folder). I've also imported the primary and secondary certificates of Thawte. The

  • Consolidation Percentage

    When i kick off a consolidation it quickly goes to 97% the it takes about 30 minutes to finish to 100%. What is the percentage measuring? Amount of entities? Its definitely not time.

  • Cube CD-RW drive can't read CD-Rs

    I have a Cube that has an Apple-shipped CD-RW drive, but it can't read the discs it burns. It creates discs fine and those discs can be read in other computers fine. But it won't read CD-Rs, either burnt from Cube or other computers. Is my drive dyin