question of rule ending date

Hi all

I have a requirement to calculate an end date that rest 35 days more extra days at the end of the month, my question is - is there a way to calculate the number of days in a month for a given month?

Thanks in advance

Here's a way to do it.

Excerpt from the year and month of "start date:"

the year of the start date = ExtractYear (start date)

the month of the start date = ExtractMonth (the start date)

Build a value date which is the start of the month in which the "start date" is located:

the beginning of the month in which falls the start date = MakeDate (the year of the date of the beginning of the start date, 1).

Find the end of the month by adding 1 month to the date above, then subtracting 1 day:

the end of the month in which falls the start date = AddDays (AddMonths (the beginning of the month in which falls the beginning date, 1),-1)

Find the number of days from the date of beginning at the end of the month. Depending on whether it is "the start date" itself and the date of the end of the month are intended to be included/excluded count, you can experiment with DayDifferenceInclusive, DayDifferenceExclusive.

the number of days from the date of beginning at the end of the month = DayDifference (start date, the end of the month in which falls the start date)

See you soon,.

Jasmine

Tags: Oracle Applications

Similar Questions

  • 74-75 cartridges printers warranty end date

    I just bought a pack of combo printer 74-75, and the warranty ends"date .dec 2015

    should I return it to the store?

    I would, if the package has not been opened.  While the cartridges will probably still be OK they would not any guarantee of HP, so if he had any questions that they would be not covered.

  • Responsibility has been say-published after end date in Oracle Applications 11i

    Responsibility has been say-published after the end date. We have the end date, a responsibility, and when we ask ourselves the same back he is not visible.

    But we can see the backend responsibility. Could someone help us please on this?

    Finally, we found the problem, it is Version column is null in the FND_RESPONSIBILITY table, but the trace query that displays where the clause is:
    WHERE (version = ' 4 'or 'W' = version or version = am'), as well as the following changes:

    a. create a liability on your TEST instance and save it and assign it to your self. Verify that you can re - consider it.
    b. date of the end of the responsibility.
    c. check if you can re - question it.
    d. What is the result of the version column in the FND_RESPONSIBILITY table for the responsibility?
    e. If it has a value, no one out and see if you can re - consider the responsibility of the forms.
    f. If the problem recurs, change the version of the table '4' or 'W' and see if you can re - query responsibility.
    e. If you can now interrogate the responsibility, remove the end date and a test to see if you can use it.

    Problem has been resolved after changing the version. This has been resolved with the help of the Support of Oracle.

    Below the reference is useful:

    https://community.Oracle.com/thread/2438822?TSTART=0

  • Simple validation on the start and end dates

    Apex 4.2

    I'm trying to create a script of validation on my start date and end date. A simple validation indicating the start date must be less than the end date. Because apex deals my fields of date as a string, using an expression of pl/sql as P101_START_DATE < = P101_END_DATE does not work. This may seem like an easy question, but I'm unable to create this simple validation. Any help would be greatly appreciated. Thanks in advance!

    Take a look how the TO_DATE plsql function works... ie... to_date(:P101_START_DATE,'mm-DD-yyyy')<=to_date(:P101_END_DATE,'mm-dd-yyyy'),>

  • How the employee element programmatically end date?

    I need to create a new item that is scheduled to expire in three months.
    Can someone point me in the right direction on how to do it?
    Thank you

    There are ways to run formulas via a standard Oracle pl/sql wrapper, but I suspect stop rules do not work. It may be possible to do such a thing using OAB, unfortunately I do not know enough about the OAB to be able to say with certainty.

    Assuming that ATO would not allow this, so looks like you need a piece of custom pl/sql to run each month in order to end date that are 3 months, using the api, which I mentioned earlier. You could plan sure to run through simultaneous Manager at certain times of the day.

    Clive

  • If no end date is specified, the learners will take one month complete their apprenticeship.

    Hello

    I need to ask a question about this statement in connect because it is confusing, unfortunately.

    I have to confirm that, if "No closing date" is selected and the user does not enter or click on the link to enter teaching, within one month of the start date, the student will no longer access to the currlculum (the link to the course and content no longer works). If they come, they have access to their content indefinitely

    image of currci.png

    Is there another way to interpret this statement which is missed by the Group?

    Thanks for any input.

    This statement means that they will have one month from the first access to training to complete it.

    Thus, the program will be available to start indefinitely, but access is limited to one month.

    If you put a definitive end date, the individual will have until that date to complete the statement, even if this date is 31/12/2099.

  • fnd_user_pkg. UpdateUser - End Date remove users

    Posted by mistake in the PL/SQL forum, until someone pointed out my mistake.

    As part of an upgrade, we need to close the vast majority of our users.

    I used the API fnd_user_pkg.updateuser to fill the end_date on the fnd_user table.

    However, when I came to test removing the end date, I can't do it. In the example below, the end_date remains populated.
    DECLARE
       CURSOR usercur
       IS
          SELECT fu.user_name
            FROM apps.fnd_user fu
           WHERE user_name = 'TEST_ACCOUNT';
    BEGIN
    
       FOR myuser IN usercur
       LOOP
          fnd_user_pkg.updateuser(
             x_user_name      => myuser.user_name
           , x_owner          => 'CUST'
           , x_end_date       => NULL
          );
       END LOOP;
    
    END;
    On the example on this post:
    http://apps2fusion.com/forums/viewtopic.php?f=99 & t = 108

    They took the final date via:

    x_end_date = > SYSDATE + 10000);

    However, this isn't really remove the end date, it's just assigning a lot of time in the future.

    I was wondering if I missed something obvious?

    Any advice much appreciated.

    Thank you

    You must pass to_date (' ' 2 ',' J ') as the end_date. It's 1/2/4712.
    If you pass this date, Oracle which deals as null. It will therefore remove the end_date in the table user.

    Hope that answers your question
    Sandeep Gandhi
    OMKAR Technologies Inc.
    Techno-Functional consultant
    513-325-9026.

  • IOM disables the user on the end date

    Hello

    We have inherited the IOM system therefore needs to check the default IOM. When we enter the current date as the end date, IOM automatically disables the user. This custom behavior or it's the default?

    I ask this question because the new requirement is that the user must be turned off at 18:00 the end day immediately after the reconciliations.


    Thanks in advance

    It is on the behavior of the box.

    Thank you
    Suren

  • JDev 10.1.3: ADF - how a record end date

    I'm relatively new to the ADF, but I have a question about a current record end. I have a table with a start and end on a record date. I created a method that allows the user to copy a record. I have a table read-only ADF, they choose the folder and click the copy button. It then displays an ADF form that allows the user to clone that record and make changes to it. The user can enter a start date for this record. Could someone point me in the right direction or provide certain documents how then can go back and end date the initially selected record with the date of departure just entered by the user? I thought that maybe I could override the doDML method in the object of the entity, but I'm not sure how to find the original record that the user has selected?

    Congratulations on getting the bits together, we will then look at your code.

    0) you are referring to the 29 attribute. This will get you in trouble if the attr index never gets re-arranged. Instead you could probably do something like:

    Line Fees001RowImpl = (Fees001RowImpl) getCurrentRow ();

    .. then you can refer to the line attribute accessor:

    row.getX () (where X is your name of the attribute... This assumes that you have created the class RowImpl for the VO).

    (with apologies, I had to guess at some of your names in classes here, so you need to tweek the names of classes to match your exact code)

    (1) why in endDateRecr() you call createRootApplicationModule()? This will create a separate transaction with the db and is probably the reason why you do not see your folder to refresh. If the client interface method is in your ViewObjectImpl, you should be able to simply call getApplicationModule(). Something like the following:

    AppModuleImpl am = (AppModuleImpl) getApplicationModule ();

    This should also give you the advantage you can now consult the Fees001ViewObject directly as follows:

    Fees001ViewObject vo = am.getFees001View1 ();

    .. ... who will isolate you from changing the name of the view object, you have hard-coded in the findViewObject call.

    (2) you are browsing the VO Fees001. Instead, you can use vo.getKey () to find your exact line (assuming that you have the PK).

    (3) you set the attribute to cost 2 + 3; similar to above, you could throw the charge line to an instance of Fee001RowImpl and then call the real setter methods provided for each attribute, isolate you from any changes to the index of the order of the attributes.

    (4) any reason that you are explicitly committed within the model layer method? This is similar to the argument that you should never commit within a pl/sql package database because it is not obvious to the appellant from the outside that this happens. Rather let the commit to your Interface ActionListener.

    I hope this helps. As I said it's a little difficult to give you the exact code I don't know the names of your object etc, but I hope it will be to steer you in the right direction.

    CM.

  • Media player guide ID: 5 end date

    My guide has an end date of 01/01/2013 11:00. Can I get a new free version?

    Hello Neil Milliere,.

    Please see the thread below because there was a problem with the program guide in the United Kingdom and Ireland. It must be corrected. If not, let us know.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/the-electronic-program-guide-EPG-for-Windows-Media/923cf081-0607-497d-889c-6424e8299213

    Check also that all your Windows updates are up-to-date.

    Thank you

    Marilyn

  • Warranty end date Dell monitor

    Hello

    I work for a company who directs Dell products in bulk (several hundreds). Asked me to know the dates of end of warranty for all monitors. I have no way to make at the present time, because the monitors have no service tags, serial numbers only.

    How can I get to determine the guarantee for all monitors end dates of these?

    Thank you!

    There is no easy way to do it. Each monitor has a 20-digit serial number and at least 3 years warranty.

    Example = CZ0-F525M-73608-021-341 L
    The 021 is the date code.
    0 = 2010
    2 = February
    1 = 1

    If the three-year warranty ended February 1, 2013.

    You need to save all and determine the date.

  • Alternate greeting - start and end date

    We have 8.6 connection of the unit. I know alternate greetings may have end dates, but our users also want the start dates. Is this possible? I have not seen it mentioned anywhere, but I thought I would check before giving up on this subject.

    Unfortunately not.

    Chris

  • Is there currently an end date for CS6 support?

    Is there currently an end date for CS6 support? Is there currently an end date for CS6 support?

    A link to buy the CS6 via phone http://www.adobe.com/products/cs6.html read the part on the CS6 is more updated

  • Can I add start and end dates to flex in WCS assets?

    Hi all

    I have to add the start and end dates to my flex belt and make it visible on the plus edition + inspect mode. For the Fund, it is STANDARD, but I have an obligation to do so for other assets that is not active promotion.

    Is there any doc/blog I can do? Help, please.

    Hi Avi.

    Dates of start and end standards are OOTB field in the metadata of the asset. So they you must set the cs.sitepreview property in the file futuretense.ini in the 'management '.

    CS.sitepreview = ContentManagement

    You can check out the documentation for more details about this property: futuretense.ini - 11 g Release 1 (11.1.1.8.0)

    If you need something different, maybe you need create your own attributes Start Date and end using types date: Data Design: active models - 11 g Release 1 (11.1.1.8.0)

    Kind regards

    Raul.

  • Filter to display the end date in the next 30 days

    Hello

    In OBIEE 11 g I have an attribute for the date of end of contract, how can I filter to show only the contract which will end only in the next 30 days - I need a filter to have like SQL

    Assuming that your LC End Date is indexed, you can get much better performance if you create a filter LC end date and place it between two Expressions, SQL: current_date AND TIMESTAMPADD (SQL_TSI_DAY, + 30, current_date)

Maybe you are looking for