Creating a Date object using an existing date object of different format

I am stuck in a problem while converting the date formats:
I have a date object in the format "yyyy-MM-dd" (e.g., 2009-08-21). And i want to create a date object in the format "MM/dd/yyyy" (e.g., 08/21/2009)
    String s = oldDate.toString(); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); Date newDate = formatter.parse(s);
the above code gives parse Exception:
    java.text.ParseException: Unparseable date: "2009-08-21"
Any Clues ?
Edited by: Rahul.Mittal on Aug 21, 2009 10:09 AM
Edited by: Rahul.Mittal on Aug 21, 2009 10:12 AM

my apologies for putting it into a wrong forum. Anyways thanks for the pointer.
But i still feel that if i somehow get the desired Date object i can get through the problem. Something like this:
     public Date getdOJ() {
          Date oldDate = this.dOJ;
          SimpleDateFormat oldFormatter = new SimpleDateFormat("yyyy-mm-dd");
          Date newDate;
          try {
                           String s = oldDate.toString();
                           SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
                           Date newDate = formatter.parse(s);
          } catch (ParseException e) {
               e.printStackTrace();
          return newDate;
     }Unfortunately i am getting java.text.ParseException

Similar Messages

  • Pls. identify some seeded views used as Existing Data Source in DBI Reports

    Hi!
    Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
    Thanks.

    Jon632 wrote:
    Hi!
    Can someone please identify some seeded views used as Existing Data Source in DBI Reports. I only need some idea how they are defined.
    Thanks.
    You can find the list of seeded views in eTRM website -- http://etrm.oracle.com/pls/etrm
    Are there seeded tables/views of DBI dimension objects in Oracle EBS?
    Thanks,
    Hussein

  • How to create a WebServices by using a BI data?

    Hi All,
    Can anybody tell me that, How to create a WebServices by using a BI data?
    If possible need the steps also...
    Plz reply back me to [email protected]
    Your help will be appreciated
    Regards,
    KIran Telkar

    Kiran,
    did you go through...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7ffba2ec-0c01-0010-2e81-988e48e3ca43
    on how to expose a BW query as a web service...?
    Arun
    Hope it helps..

  • How to Create an Input Form using a Transient View Object?

    I would like to use a Transient View Object to store data from input forms across a multiple-page enrollment process.
    My question is how to I create the input form using the Transient View Object on the .jspx page? Do I drag/drop an ADF creation form onto the page? Or, use a regular ADF form? Do I need to create the initial row progammatically?
    Just looking for some general directions or set of instructions? I've looked at the SRDemo example (Globals Transient View Object), but I'm not sure how they created the page at design time?
    thanks

    Well following the SRDemo example, this seems to work:
    1. Create Transient View Object
    2. Add to Application Module as a Data control
    3. Add to .jspx page as an ADF Form (not as an ADF Create Form)
    4. Add following code to Application Module containting Transient VO instance:
    protected void prepareSession(Session session) {
    super.prepareSession(session);
    insertTransientViewObjRows();
    private void insertTransientViewObjRows() {
    ViewObject transientvo = getViewObj1();
    transientvo.clearCache();
    transientvo.insertRow(transientvo.createRow());
    }

  • Can we restrict a master data characterstic using another master data chara

    Hi All,
    Can we restrict a master data characterstic using another master data characterstic, if they were both compounded together. There are two fields viz.., A,B  in r/3 master data table in which A and B combinely serve as a key. In BW side i have created a master data object for A and compuded object B ot it. So that i am getting all the data from r/3 table. But in query designer when i am trying to restrict object A values by object B, in a structure i am not getting any data. If i do same out of structure i am getting data in report. Please help in overcoming this problem.
    Regards,
    Rajkandula

    Hi,
    Yes it should display data, but it is not displaying. If i am doing the same restriction out side of a structure i am getting data. But whilr trying to do so, i am not getting that. The reason why i am bothering about structure is 'Objext B have 10 different values and i want 10 coloumns in report in whicg Obj A must display respective data when i restrict it by B' , whicg i can do this only if i use structure else i can't restrict B that many times .
    I hope u got my problem and plz give help me in this.
    Regards,
    Rajkandula

  • I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I pub

    I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I publish it, it stops working.

    I added an Interactions button and in the Actions on Success I open an URL or file. I have placed the video on our web server.   In the URL I point to our web server "http://www.wmabhs.org/Media/Add Client 3rd Party Coverage.mp4".  If I run this from any browser it works.  So what do you think I have done wrong?

  • How to use an existing data model using Business Components in OEPE

    I am a beginner in ADF. I am working on a project with an existing data model that uses Business Components (EO, VO and AM). I know that OEPE does not handle the creation of BC, so if I want to modify them, I will have to do that in JDev. That's fine.
    OEPE can create pages with drag and drop like in JDev. In my eclipse ADF projects, I would like to use the existing BC, to be able to use the bindings with ADF Faces. So far I have nothing in the Data Controls tab.
    How to import the BC into the Data Controls tab?
    JDev 11.1.1.6
    WLS 10.3.6
    Eclipse Kepler

    We currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
    Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
    HTH. Thanks for your interest in OEPE.

  • Can i del. master data if that object used in other data providers.

    hi everybody...
    in IO '0material', i have some data. but i need to delete that. while deleting it is saying that 0material is used in other data targets...first u delete that then u can delete from 0material...
    but what i found is even tho 0material is used in number of data targets, no data target is provided with data from 0material. so im not able to understand what to delete from data targets...shud i del the 0mateial IO from those data targets or what????
    pl clarify me
    thank u...
    nith

    Hi Nith,
    I am not quite sure about your issue, but here some additional hints.
    - you cannot delete a infoobject if it is alread used somewhere else (e.g. in attributes of another infoobject, in ods objects, in cubes)
    - you cannot delete the data of a infoobject if the data is already used somewhere else (e.g. see above). The system checks the used records and only the records that are not in use will be deleted. You can check yourself which records are already used or not. In the sid-table of the infoobject you'll find a flag datafl. If it contains a 'X', the record is used.
    Hope it helps!
    regards
    Siggi

  • Create a purchase order  using an existing PO

    I want to create a purchase order (ME21N) using an existing PO.
    Please help. how can i do that.
    Best regards,
    Satish

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • No PDF created when section break used and no data in XML group

    I have this issue that Tim Dexter documented on a few years back...
    http://blogs.oracle.com/xmlpublisher/output_formats/
    "When you are using @section in your template for the commands, 'for-each' or 'for-each-group' (e.g. <?for-each@section: ...?>), then an empty/invalid PDF can be generated if XML data file has no data for that for-each loop."
    This is my exact issue. Yet the instructions do not solve my problem completely. I add another section break at the end of my RTF and it gets the page to show...but I get an extra page at the end of all the populated xmls
    Is there a way to supress this page?

    Hi Jason,
    I would like to see your template and data.
    You have use @section and add condition to make the no-data page.

  • How do I get iCloud to use my existing data?

    If I turn iCloud on I get old calendars and bookmarks appearing.
    How do I get iCloud to understand I want to upload my new data?

    Fixed it.
    Forgot about iCloud.com, so just went there and deleted everything.

  • Essbase Data Export not Overwriting existing data file

    We have an ODI interface in our environment which is used to export the data from Essbase apps to text files using Data export calc scripts and then we load those text files in a relational database. Laetely we are seeing some issue where the Data Export calc script is not overwriting the file and is just appending the new data to the existing file.
    The OverWriteFile option is set to ON.
    SET DATAEXPORTOPTIONS {
         DataExportLevel "Level0";
         DataExportOverWriteFile ON;     
    DataExportDimHeader ON;
         DataExportColHeader "Period";
         DataExportDynamicCalc ON;
    The "Scenario" variable is a substitution variable which is set during the runtime. We are trying to extract "Budget" but the calc script is not clearing the "Actual" scenario from the text file which was the scenario that was extracted earlier. Its like after the execution of the calc script, the file contains both "Actual" and "Budget" data. We are not able to find the root cause as in why this might be happening and why OVERWRITEFILE command is not being taken into account by the data export calc script.
    We have also deleted the text data file to make sure there are no temporary files on the server or anything. But when we ran the data export directly from Essbase again, then again the file contained both "Actual" as well as "Budget" data which really strange. We have never encountered an issue like this before.
    Any suggestions regarding this issue?

    Did some more testing and pretty much zoomed on the issue. Our Scenario is actually something like this "Q1FCST-Budget", "Q2FCST-Budget" etc
    This is the reason why we need to use a member function because Calc Script reads "&ODI_SCENARIO" (which is set to Q2FCST-Budget) as a number and gives an error. To convert this value to a string we are using @member function. And, this seems the root cause of the issue. The ODI_Scenario variable is set to "Q2FCST-Budget", but when we run the script with this calculation function @member("&ODI_SCENARIO"), the data file brings back the values for "Q1FCST-Budget" out of nowhere in addition to "Q2FCST-Budget" data which we are trying to extract.
    Successful Test Case 1:
    1) Put Scenario "Q2FCST-Budget" in hard coded letters in Script and ran the script
    e.g "Q2FCST-Phased"
    2) Ran the Script
    3) Result Ok.Script overwrote the file with Q2FCST-Budget data
    Successful Case 2:
    1) Put scenario in @member function
    e.g. @member("Q2FCST-Budget")
    2) Results again ok
    Failed Case:
    1) Deleted the file
    2) Put scenario in a substitution variable and used the member function "@member("&ODI_Scenario") and Ran the script . *ODI_SCENARIO is set to Q@FCST-Budget in Essbase variables.
    e.g. @member("&ODI_SCENARIO")
    3) Result : Script contained both "Q1FCST-Budget" as well as "Q2FCST-Budget" data values in the text file.
    We are still not close to the root cause and why is this issue happening. Putting the sub var in the member function changes the complete picture and gives us inaccurate results.
    Any clues anyone?

  • Data Binding using XML as data connection

    I'm using an XML as my data connection. It has several order fields in various sections that have unique field identifiers. I have created a random order # script that runs fine inside of the form that occurs on the first order number field but I need that same number to populate into each of the additional order fields, again that have unique identifiers. Is there a way to combine data fields?
    Thanks!

    usually you can make the binding global and all same named fields will end up with the same value. You may not be able to do that if you have bound your field to a data node in your XML. If that is the case then you will have to do it programatically. Lets assume you have Order_Number on Page 1 and Order_Number2 on Page 2. You would code on the calculate event of the 1st Order_Number field (the one where the number is calculated) - form1.Page2.Order_Number2.rawValue = form1.Page1.Order_Number.rawValue;
    You can add multiple statements to equate that value to other instances of the field as you see fit. Now when any one of those values changes all of the others will be updated auto-magically!

  • How to create a form by using an existing Word document.

    Just installed Adobe XI Pro.  Now trying to create a form from an existing word file.  After choosing my file I cannot click on the button (Current document).  Error message appears:  An unexpected error occurred.  PDFMaker was unable to produce the Adobe PDF.

    Try starting with the file opened in Word and creating the PDF from there. You can either use PDF Maker (Acrobat toolbar in Word) or print to the PDF printer. If that works, you can open the PDF in Acrobat and ruun the form wizard to automatically add the fields, or add them manually.

  • Data Load using only 1 data package

    Hi,
    I am moving data from one cube to another manually using an infopackage. This system has recently been upgraded from 3.0 to 3.5.
    It is only using 1 datapackage (I am loading 19m records) and have done this successfully before and it used 4 datapackages.
    Settings in SBIW show that MAXPROC for myself system is set to 4. Entries in ROOSPRMS show MAXPROC as being 1.
    With these settings in the failover system (3.0B), it uses 3 datapackages. With these settings in teh production system (3.5), it uses 1 datapackage.
    Does anyone have any ideas as to how to get it to use 4 datapackages ?
    regards
    Sue

    Check Default Datasource data transefer in the scheduler menu item in the Infopacakge; here you can find max number of records and max size of datapackage.
    Hope it helps.
    Regards

Maybe you are looking for

  • 500 internal server error in EPMA and Calc manager in 11.1.2.1

    We are getting the below errors in EPMA log and Calc Manager log and unable to determine the cause of it. It seems like this particular issue was cause while deploying a calc manager rule for an HFM app. The issue resolved itself and the errors went

  • I cannot get my seagate HDD to work correctly with Time Capsule USB

    I have been using my seagate expansion 2tb powered HDD happily with itunes connected directly to my imac. i would like to move it to my TC via usb. it is having none of it. it is formatted using mac os extended (journaled) and it will only show up in

  • Webdynpro vs URL - iViews

    Hi all, What is the difference between WebDynpro iView and URL iView pointing to a WebDynpro application? any advantages? disadvantages? Aviad

  • TS5181 iTunes radio - Bit Rate and recording

    There is an ongoing comparision to Pandora however, I suggest that Pandora offers a better value by far: 1. iTunes Radio does not state bit-rate 2. Pandora One is 192kb for $40/yr, with no adds; free Pandora is 64kb and has adds 3. PandoraJam permits

  • Folder ID Setting  Migration of XML Forms

    Hi,    I want to <b>migrate the Folder ID Settings of XML Forms</b> which are configured in the System Administration. The migration is to be done from Development to Quality and Production Servers.    Please let me know how should I proceed , if any