Compare same date  showing up in two different ranges

hi am comparing date with following requirement the value date transction must be within the Active date(>= greater than or equal) and inactive date(<= less than) date range,my problem is date is showing up in two diffirent ranges with the results of that am geting two error message
lets say the date is
transdate=2014-05-16
activedate=24/APR/14
inactivedate=25/APR/14
s
my code is
try
                           String s_ActivDate = getValueFromTable("S", "EXCEPTION_NAME", "EXCEPTION_NAME", s_exceptionName, "EXCEPTION_NAME_DATE_ACTIVE");
                           String s_InactiveDate = getValueFromTable("S", "EXCEPTION_NAME", "EXCEPTION_NAME", s_exceptionName, "EXCEPTION_NAME_DATE_INACTIVE");  
                            System.out.println("Systemoutdateafer "+sDate);
                            System.out.println("Systemouts_InactiveDateafter "+s_InactiveDate);
                            System.out.println("Systemouts_ActivDateafter "+s_ActivDate);
                            System.out.println("Systemouts_ActivDateafter "+s_exceptionName);
                            //if (validate.validateException(s_exceptionName))
                            if(s_ActivDate != null)
                         if(s_InactiveDate != null)
                         if(!isActive(sDate,s_InactiveDate, s_ActivDate))    
                                System.out.println("Systemoutdate "+sDate);
                                System.out.println("Systemouts_InactiveDate "+s_InactiveDate);
                                System.out.println("Systemouts_ActivDate "+s_ActivDate);
                                System.out.println("Systemouts_ActivDate "+s_exceptionName);
                        } catch (SQLException ex)
                             System.out.println("Systemouts_ActivDate "+s_exceptionName);
                            java.util.logging.Logger.getLogger(ValidateFile.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
public boolean isActive(String sValueDate, String sInactive, String sActive)
        Date date_active;
        Date date_inactive;
        System.out.println("Value Date "+sValueDate+" Active "+sActive+" InActive"+sInactive);
        try
            date_active = new SimpleDateFormat("yyyy-MM-dd").parse(sActive);
            Date dt_valueDate = new SimpleDateFormat("yyyy-MM-dd").parse(sValueDate);
            if(!isBlank(sInactive))
                date_inactive = new SimpleDateFormat("yyyy-MM-dd").parse(sInactive);
                if (dt_valueDate.compareTo(date_inactive) < 0 && dt_valueDate.compareTo(date_active) >= 0)
                    return true;
            }else
                if (dt_valueDate.compareTo(date_active) >= 0)
                    return true;
        } catch (ParseException ex)
            java.util.logging.Logger.getLogger(Validate.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }catch(NullPointerException npe)
            return false;
        return false;

Moderator Action:
This is the third time you have posted this question.
In your duplicate posting, you were shown where it would belong - a NetBeans forum space.
https://community.oracle.com/thread/3560366
... and yet you continued to post it to an incorrect location.
This triplicate post is locked (as are the others because they're off-topic for where you placed them)

Similar Messages

  • Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

  • How to make a checkbox hide and show div between two different pages

    Hi
    I am developing a mobile site application.
    Currently I need to make a checkbox effect.
    Here is how I want the checkbox to work for me..
    I want users to click on the checkbox, for an option on the editor as well as its content on the live mobile to hide.
    These are two different files which contains the user interface.(the live mobile file and the editor file)
    Now how can I make it possible to make both options hide or show at the same time after a user clicks on the
    checkbox to show or hide.
    Is it possible for a checkbox created on a different file affects an external file to hide a div within that file?
    If so kindly advice me on this.
    Thanks in advance

    There are several tutorials out there for dissolving a layer, turning text to sand, and similar things. Use any/all of those and then time remap that composition to make the particles form into your word.

  • Why does my iTunes show apps in two different groups?

    When I open my iTunes 10 and look at the Apps tab, it shows my iPhone and iPad apps distributed amongst two different groups: iPhone, iPod Touch and iPad Apps and iPhone and iPod Touch apps.  I don't really understand this as I don't have a iPad.  An I only loaded a few apps to my iPod Touch years ago.  Seems to me that the Listing should be showing apps sorted by the "Authorized Devices" to which they have been installed.
    Another complication is that I have two Apple Store accounts...my US account from when I bought my first iPod Touch while living in the US and then a Thai account since I am living in Thailand and it makes payment easier.  Isn't there a way to see the apps loaded into my Library sorted by Apple Store account??
    Apple software is becoming more and more like the Microsoft products we all love to hate.  Sadly, ease of use for the user is out the door.  It's why I continue to use iTunes 10 and OS 10.6.8...stable and I know what I get and don't get already :-?
    Thanks for the feedback.

    You got it right.  Thank you.

  • Use of same variable in WAD for two different operations

    We use one aggregation level to input data using WAD. In the same WAD template we would like run a planning function on a different aggregation level that copies the same data. Both operartions use the same variables. But the WAD prompts the user to enter the value for variable again when it tries to copy the data.
    How do we avoid this?
    Thanks,
    DV

    Hi,
    In WAD , open your web-template .
    In the Web-template 'properties'    under 'Web template parameter' you have the
    option 'display same variable only once'
    Please check whether this is ON or not.
    Please also check whether the variable you are using is Mandatory variable.
    Mandatory variables pops up irrespective of settings.
    Regards,
    Amit

  • How to do the same form element alignments on two different regions

    Hi,
    I have two different regions on the same page as the second one is underneath of the first one. Both the regions have some form elements like text field, select list etc. However the alignment of the elements on these two regions are not the same. In the individual regions, it just aligns the input fields based on the maximum length of the label within the region only, so it creates two different vertical alignments per region. How to have the same alignment for the input elements across the regions?
    (I wish to upload the screenshot of the page but there is no provision in this forum to do so).
    Thanks in advance.
    Natarajan

    The basic approach is to set the width of the item labels using a CSS embedded style sheet in the page HTML Header:
    <style type="text/css">
    label {
      display: block;
      width: 15em;
    </style>If you want to limit this to items in specific regions, then give these region(s) static region IDs (such as <tt>region-1</tt>) for use as CSS selectors:
    <style type="text/css">
    #region-1 label,
    #region-2 label {
      display: block;
      width: 15em;
    </style>

  • PowerView - 1 Workbook; 2 Data Sources(one linked to SQL and one a table inside excel); Both have same data set but Counts are Different

    Hi Everyone,
    Hopefully someone might have an explanation for the difference in counts.
    Problem:
    Excel 2013 on Windows 7
    A Single excel spreadsheet with 2 data sources: 
    One created using "From Other Sources on the DATA tab which connects to SQL Server"
    Second data source the same data as item 1, but in a differnet worksheet tab inside the workbook
    [Sheet1] - Other SQL data Source
    [Sheet2] - Exact Same data as Sheet1 but in a table
    [PowerView] - 2 tables
    Table one uses Sheet1 as its table data source
    Table two uses Sheet2 as its table data source
    When you Count(Not Blank) using the same criteria and fields for each table, the numbers dont match.
    The one that has the incorrect count is when I use the Table data from [Sheet1] - which is the Other SQL Data Source
    Testing:
    I also created a standard pivot table using Excel and the counts then are both correct for both datasources.  So it must be something in PowerView????
    Any ideas anyone...

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office client. Since your question is Power View related, I'm moving it to the forum of
    power BI>Power View, where you can get more experienced responses:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Compare 2 Columns using SSIS from two different tables

    Hello,
    A newbie to ssis.
    I have a Table 1 with Address Details and Table 2 with Address Details of same customer but from different sources. I have loaded these two data sources and also joined these two tables.
    I want to compare address column of one table with the other table, if they are not equal need to insert into another table.
    With Sql query we can perform it, but just want to know how to perform this with ssis.

    You can use the
    LookUp Transformation
    Arthur
    MyBlog
    Twitter

  • My husband and I share an e-mail account.  Can we use the same e-mail account for two different iphone account i.d.'s?

    My husband and I do not have separate e-mail addresses.  Before he purchased an IPhone this was not a problem.  Does we need two separate e-mail addresses to create two separate Apple ID's and register, maintain two separate IPhones?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • Dobble sms - same message comes up on two different Iphones

    Hello
    My wife and I have Iphone 4 and 4s. The last months sms to and from my wifes iphone has appeared on my iphone. How come?
    We have both activated the phones on the same account loong time ago.
    Reg
    Lauritzen

    thks for answer.
    To change Apple ID, does it mean to start all over again on a different PC, load down Itunes etc and then connect one of the Iphones?

  • How can I use the same Apple ID account in two different App Stores?

    I am from Greece and I use my Apple-ID account to download iPhone Apps from the Greek App Store. However I live in Germany and some iPhone applications I want are available only through the German App Store. When I try to download one of them I got the message that my acount cannot be used with the German App Store. Is there any way to be able to have on my phone applications form both the German and the Greek App store at the same time using or not the same Apple ID account? I have got both Greek and German credit cards if this is an issue. Thanks.

    If I create a new iTunes account for the German itunes store, what happened with my previous purchases? Do they remain on my iPhone and my Mac's iTunes?
    Nothing will happen to your existing purchases. Your computer will remain authorized - you can authorize a single computer to up to five iTunes Store accounts - and the apps and content will remain in place.
    Can I switch from one acount to the other every time I want to update an application or purchase a new one?
    As long as you're in the relevant country, yes. Again, the terms of use say that you agree not to even attempt to use an iTunes Store from outside of its country.
    Regards.

  • Comparing digital input and output from two different DAQs

    I want to create this program where the digital output lights up LEDs at random and push buttons are the digital input part of another DAQ are pushed. When the correct button is pushed, the score will increase by 1. My code doesn't work though. Can someone point my errors to me? Both the DAQs i'm using are USB-6008 DAQs. thanks
    Attachments:
    Untitled 1.vi ‏41 KB

    Let's start with the digital output
    What is this code all about?
    Do you want only one of the 8 led's to lit randomly or are multiple led's also ok?
    The two possible codes are in attached file SNAG-003.jpg
    Connect the output of the "Scale by power of 2" function or the "Multiply" output directly to the Write DAQmx vi
    I don't understand the purpose of the "Boolean Value" and "Replace subset array" thing, so I skipped it
    Attachments:
    SNAG-002.jpg ‏49 KB
    SNAG-003.jpg ‏22 KB

  • Sales Deal with two different validation dates for the same material

    Hi SAPers,
    I am trying to create a u201CSales Dealu201D VB31, for the same material/condition, but with two different validation dates. After the creation of the first record, I select u201CNew conditionu201D button, but the system give me the message VK104, u201Cthe condition is being processed in the current session.u201D.
    How can I solve this issue?
    Thanks in advance.
    Pedro

    We can't have multiple records for the same condition and key values valid on the same date. The condition end date is part of the primary key in the database table. The date ranges between the records cannot overlap. When you create a new record, usually the end date is set to 12/31/9999 by default. If you need to have this deal to end on a different date and a new deal to start afterwards, then first you need to change 12/31/9999 to a different date.
    Also usually I try to exit the screen between the transactions.

  • How can I use the same "I Tunes" on two different computers

    I’m using two different kinds of Personal Computer: One is Desktop PC And the other one is Notebook .
    In each computer there are the same songs and when I get the new ones to the Desktop I want them to be placed on the Notebook or reverse.
    Where does the I Tunes save the playlist on the hard drive ?
    I have prepared a playlist on my Notebook and want it to be seen on the Desktop but I dont want to fallow the steps File > Library > Export Playlist on the Notebook. Is there any other way to make this issue instead of the mentioned steps.
    How can I see the same Playlists and songs on two different computers ( notebook and desktop) including the updating processes.
    Operating systems of the computers:
    Desktop: XP Pro
    Notebook: Vista Bussiness

    I use SyncToy 2.0 to keep two instances of my library in sync. SyncToy's preview will show which files it is about to update giving you a chance to spot unexpected changes and during the run only the changed files will be copied saving lots of time.
    As long as I sync after making updates at one instance of the library before making any updates at the other then everything works just fine. I periodically run iTunes Folder Watch to check for any orphaned entries or new items that haven't been imported into the active library. If your machines are regularly networked together this process is fairly straightfoward. Mine are in disparate locations so I use one of the (physically) small WD My Passport host powered drives which I take between home & work, synchronising at either end. This gives me three complete copies of my library so I'm covering backup & synchronisation in the same operation.
    When connecting my iPod at either location iTunes recognises itself as the "home" library for the iPod so I'm able to use the sync with selected playlists option without getting warning messages about the iPod being synced with a different library.
    tt2

  • HT4137 I have two iPad's that use the same iTunes/store account. I want the two devices to play games with with other, but it recognizes them as the same. I have set up two different iCloud accounts, but still not recognizing the users as different. What

    Hello, I have no idea if my question went out, so I'll post it again. I have two iPads (one 3rd gen and one 4th) that use the same iTunes/store account. I want the two devices to game with each other, but the apps recognize them as the same. I have created two different iCloud accounts in an attempt to differentiate between the two, but no luck. How can I continue to use the same iTunes/store account for music and movies, but also have the two devices recognize each other for games?

    You can share your iTunes ID and still have separate iCloud accounts with separate IDs, they don't have to be the same.  If you kids don't already have an iCloud account, have them set up separate accounts on their devices using separate IDs.  If they are already sharing your account, migrate their devices to separate accounts.  To do this, start by saving any photo stream photos they wish to keep to ther camera roll (unless already there) by opening your my photo stream album, tapping Select, tap the photos, tap the share icon (box with upward pointing arrow), then tap Save to Camera Roll.  If they are syncing notes with iCloud, you'll need to open each of your notes and email them to them so you can later copy and paste the text into new notes created in their new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from thier device and won't effect your device), choose Keep on My iDevice and provide the password to turn off Find My iPhone (if using iOS 7).  Then sign back in with a different Apple ID to create their new account and choose Merge to upload the data.  Once everyone is on a separate account you can go to icloud.com from your computer, sign into each account separately and delete your data from their account.

Maybe you are looking for

  • How to load an Excel sheet into Oracle via SQL* Loader

    Hallo!I am trying to load an Excel spreadsheet into an Oracle 10g database via SQL*Loader. How do I achieve this via Oracle Enterprise Manager? Please give a detailed explanation especially covering the locations of the control file,infile,bad file e

  • XDB Native Web Services - Collection of object types

    Hello, my DB 11g (11.1.0.6.0) is enabled to use XDB Native Web Services, everything works as it should. I already use it successfully to publish a web service with object types as OUT parameter. They are created as complex types in the XML response a

  • Refresh report in an iframe

      I've got a main report using WE to create an iframe(called 'adetail') and displays a detail rpt within the iframe. The main rpt has  a WE to re-run the detail rpt while maintaining the main rpt on the screen. The formula ends with: <p><strong>WEOpe

  • Pages published with permissions 600

    Sun OS machine using Apache and contribute version CS3 when ever the users publish their changes or create new pages the changes are uploaded but the permissions for the file are reset to 600 (rw- --- ---) meaning that the page cannot be viewed in th

  • Adobe Reader download problem! Pls help!

    I recently did a little 'housekeeping' on my Mac to clear up some space. But I must have deleted something I shouldn't have...When I go to open Adobe Reader an error message pops up. "Adobe Reader could not install correctly" then in subtext "Adobe R