Date Operations

Hi all,
Knows Anybody a tutorial tha teach how to work with Date Operations. Add, Subtract etc...
Example:
date format MM/DD/AAAA
02/10/2002 + 1
Results
02/11/2002
Thanks.

Take a look at the javadocs for Date, Calendar, DateFormat, SimpleDateFormatter, etc. That should get you started.

Similar Messages

  • Change IE02 field (Customer/Vendor Data - Operator)

    Hello experts,
    Does anyone know if there is any BAPI or FM for changing the Operator Field (IE02-> Customer/Vendor Data -> Operator) ???
    Any advice/suggestion about how to do this without using a BDC program?
    Thanks in advance,
    -C

    Hi robert,
    it will solve your problem.
    CUSTOMER_ADD_DATA_CS open for input in display mode
    We can use SET_DATA method and parameter  i_Activity.
    Reddy

  • There is no message to return to tell user when clear data operation in HFM ?

    We have a HFM of Hyperion 11.1.2.2 running Windows 2008 R3 server with Oracle 11g on IBM AIX server. When user ran "clear data operation" on HFM server. The clear data operation is good just there
    is no message to show is completed. Is a setting missing on HFM server or shared services server ? Any thoughts ?  thanks

    This is clear data operation steps: see below
    Log into Workspace
    Navigate -> Applications -> Consolidation ->a servername
    Application Tasks -> Data -> Manage
    Under Clear Data:
    Uncheck Enable Detailed Logging
    Uncheck Rates and System Data
    Scenario = Actual
    Year = 2012
    Period = May
    Account = [Hierarchy]
    Entity = filter on Base Entities-> Select base Entities

  • Examples of Date operations

    Hi all,
    I got a new development, which deals with Date operations only.
    So, can anybody please send me the Commands used to do the date and time operations with Examples.
    \[removed by moderator\]
    Thanks in advance..
    Jagan mohan.
    Edited by: Jan Stallkamp on Jul 29, 2008 5:25 PM

    Hi
    Check this Report
    REPORT demo_data_date_time .
    date calculation
    DATA: ultimo TYPE d.
    ultimo      = sy-datum.
    ultimo+6(2) = '01'.
    ultimo      = ultimo - 1.
    WRITE ultimo.
    ULINE.
    time calculation
    DATA: diff TYPE i,
          seconds TYPE i,
          hours TYPE i.
    DATA: t1 TYPE t VALUE '200000',
          t2 TYPE t VALUE '020000'.
    diff = t2 - t1.
    seconds = diff MOD 86400.
    hours = seconds / 3600.
    WRITE: / text-001, hours.
    ULINE.
    convert date
    DATA: odate TYPE d VALUE '19955011',
          idate LIKE odate.
    DATA  field(8) TYPE c.
    field = odate.   WRITE / field.
    CONVERT DATE odate INTO INVERTED-DATE idate.
    field = idate.   WRITE / field.
    CONVERT INVERTED-DATE idate INTO DATE odate.
    field = odate.   WRITE / field.
    Hope this Helps .
    Praveen

  • HT4623 what if the software up date operation is not on your phone because your running 4.2.6(8e200)

    how do I update if the software up date operation is not on your phone because your running 4.2.6(8e200)

    All you need is up to date computer iTunes.
    Plug your iPhone to iTunes, in Summary page click Check for Update button.

  • SharePoint 2013 REST API with C# - Mapping HTTP verbs to data operations - Requesting FormDigest

    SharePoint REST interface maps HTTP verbs to data operations. Endpoints that represent
    Read operations map to HTTP
    GET commands. Endpoints that represent update operations map to HTTP
    POST commands, and endpoints that represent update or insert operations map to HTTP
    PUT commands (Ref:
    How to: Complete basic operations using SharePoint 2013 REST endpoints).
    Is this mapping of HTTP verbs to CRUD operations a design paradigm or whether there are other technical reasons to this mapping
    Is is possible to use a GET command for say an update operation or a POST for say a read operation.If so, what consideration make the choice of either usage
    In the code snippet below FormDigest is requested as POST, why not use GET here?
    private static string GetFormDigest(string webUrl)
    //Validate input
    if (String.IsNullOrEmpty(webUrl) || String.IsNullOrWhiteSpace(webUrl))
    return String.Empty;
    //Create REST Request
    Uri uri = new Uri(webUrl + "/_api/contextinfo");
    HttpWebRequest restRequest = (HttpWebRequest)WebRequest.Create(uri);
    restRequest.Credentials = CredentialCache.DefaultCredentials;
    restRequest.Method = "POST";
    restRequest.ContentLength = 0;
    //Retrieve Response
    HttpWebResponse restResponse = (HttpWebResponse)restRequest.GetResponse();
    XDocument atomDoc = XDocument.Load(restResponse.GetResponseStream());
    XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
    //Extract Form Digest
    return atomDoc.Descendants(d + "FormDigestValue").First().Value;
    Thanks - Abhishek

    Many SharePoint REST api methods use parameters. It is much more efficient to post parameters than use query string variables.  Many times complex types are sent and these require json notation objects posted in the body. In the case of "_api/contextinfo,
    it is recommended to use POST rather than a GET when using sensitive data. GET responses can be cached. Since you are getting a security token back in that call it is recommended to use a POST.
    http://blog.teamtreehouse.com/the-definitive-guide-to-get-vs-post
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • TS3297 I have an iPhone 4S - software up to date, operating under IOS7 -- all is well except suddenly I am not able to connect to the iTunes store. Tap the icon and immediately it returns to the home screen

    I have an iPhone 4S - software up to date on all counts, operating under IOS7.  I cannot open iTunes store.  Tap on the icon and it immediately flashes
    back to its home screen.   I have  no problem on my iMac or my iPad 4 -- just the iPhone 4S.

    Sounds like the device was dropped at some point and damaged as a result.
    Take it to Apple for evaluation and a replacement.

  • Out of date operating system.

    Hi there,
    So I used the one month trial of a few adobe programs with no hassle. When the trial ran out I decided to rent the programs. When I went to install the programs I wanted it said my mac operating system was not up to date with the requirements for the program. How can I fix this?

    That is not a supported operating system for the current version:
    http://www.adobe.com/products/aftereffects/tech-specs.html

  • Problems with dates operations

    Hi!
    Hope everyone is well. I need some help, I'm trying to obtain the time differences between two hours.
    I have the next Inputs:
    Start_Time: 2014-03-23 20:03:00
    End_Time: 2014-03-23 21:03:15
    If you can see, there is an hour in time difference, but when I execute the next query, my result is diferent.
    SELECT End_Time - Start_Time FROM DUAL;
    The result is: 0.0772569444444444444444444444444444444444
    This is definetaly wrong, if I do the same operation in EXCE the result is: 0.041840278 (Correct).
    Then I multiply that by 24 hrs
    SELECT End_Time - Start_Time * 24 FROM DUAL;
    And the results are in here:
    Oracle: 1.85416666666666666666666666666666666667
    Excel: 1.004166667
    So, Excel value is the one I'm trying to reach.
    In a different computer, I executed this query in toad and it gives me the right value. I'm using SQL Developer.
    Can anyone help me?
    Thank you!

    1008940 wrote:
    Hi!
    Hope everyone is well. I need some help, I'm trying to obtain the time differences between two hours.
    I have the next Inputs:
    Start_Time: 2014-03-23 20:03:00
    End_Time: 2014-03-23 21:03:15
    If you can see, there is an hour in time difference, but when I execute the next query, my result is diferent.
    SELECT End_Time - Start_Time FROM DUAL;
    The result is: 0.0772569444444444444444444444444444444444
    This is definetaly wrong, if I do the same operation in EXCE the result is: 0.041840278 (Correct).
    Then I multiply that by 24 hrs
    SELECT End_Time - Start_Time * 24 FROM DUAL;
    And the results are in here:
    Oracle: 1.85416666666666666666666666666666666667
    Excel: 1.004166667
    So, Excel value is the one I'm trying to reach.
    In a different computer, I executed this query in toad and it gives me the right value. I'm using SQL Developer.
    Can anyone help me?
    Thank you!There's something else you are not telling us:
    SQL> SELECT End_Time - Start_Time FROM DUAL;
    SELECT End_Time - Start_Time FROM DUAL
    ERROR at line 1:
    ORA-00904: "START_TIME": invalid identifierWhere are you getting the values for START_TIME and END_TIME?

  • Date operations with internal table

    Dear friends
               would you like to tell me. how i determine the most recent date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and time to determine which record is most recently changed...
    here the scenario is.
    id       idnumber  chdate      chtime
    1        123456    20060606    135312
    2        123456    20060606    135900
    3        123456    20060606    132300
    4        123457    20060606    140000
    5        123457    20060606    142500
    in the above scenario i must keep in my mind that the most recently changed record is identical to its idnumber i can say that:
    the record should be fetched this way
    id       idnumber  chdate      chtime
    3        123456    20060606    132300
    5        123457    20060606    142500
    because here the id 3 is the most recently changed in the idnumber 123456
    where id 5 is the most recently changed in the idnumber 123457
    please help me to determin how i am supposed to carry out this task  any suggestion, code will be great help of mine.
    regards
    Naim

    Hi Naim,
      For example if ur select statement is like this..
       select id idnumber chdate chtime from xtable into table itab  where ...<condn>..
        sort itab by  idnumber chdate chtime  descending.
         delete adjacent duplicates from itab comparing idnumber .
         Code like above statement..
       You can get result...
    id idnumber chdate chtime
    3 123456 20060606 132300
    5 123457 20060606 142500
      Reward the points if it helps.

  • Date operation error in User defibed field

    Good day all,
    I'm having the following problem:
    I have a user-defined field in which I wish to add the following query formatted:
    SELECT [$ODLN, TaxDate] +10
    The problem occurs when the sum exceeds 30 / 31 days! In SQL, it works normally, and the month is changed.
    In the SAP B1, an error is returned, as if it were possible to add more days a month.
    Thanks in advance!
    Lucas Dias

    Good day Gordon,
    Perfect! Exactly this. Works fine here. Mine is B1 8.81 PL 04.
    What this ".date" part do? Is it to specify my field as a date field or simple convert to date?
    Thanks for the help!!
    Lucas Dias

  • Date operations in java: how to substract two dates

    dear all
    I want to substract two date and return the number of days between them
    and I want to make a method that return the number of monthes between two dates
    please help

    Kayaman wrote:
    Check out the Calendar class.Hello Kayaman,
    From a quick glance at its API, I haven't found it obvious that Calendar could fulfill such need under 10-lines algorithms. As per Joda-time's proponents, it's one of those computation that are unintuitively hard or convoluted using the stock JDK date&time classes.
    If you're comfortable with Calendar, maybe you'd find it interesting to voice your opinion in this other topic: {thread:id=1982257}. Thanks in advance.
    Hello OP,
    apologies for plugging that discussion in your topic. But I do think it's closely related.
    I noticed you marked both replies as helpful. I'd like to know your feedback on those replies: have you tried both approaches, and succeed with one, or both? Have you met difficulties with either?
    Thanks, and good luck anyway.
    J.

  • Date Operation

    Hi people, i have a simple question.
    In a document i have a Definited DATE. But i must do that if the document type is 'XX' the new data is the old data + 60gg . How i can add 60gg to a data?

    Hi
    What do you mean by gg along with 60? is it 60 days
    say that one date is date1
    data: date1 type sy-datum, date2 type sy-datum.
    to get new date after 60 days
    just add those days
    date2 = date1 + 60.
    Regards
    Anji

  • Itunes 10.7 and my out of date operating system

    I have an imac from 2008 and I'm unable to download the required itunes 10.7 in order to restore my new iPhone 5. Does anyone have any suggestions as to what I should do? Or if it is even going to be possible for me to use this device with my 4 year old computer?
    Info about my computer
    Mac OS X
    Version 10.5.8
    3.06 GHz Intel Core 2 Duo
    2 GB 800 Mhz DDR2 SDRAM

    Phone the online Apple Store and order a Mac OS X 10.6 DVD.
    (70547)

  • Reg. table name, that contains data of deletion of PP & PM operations(point

    Hi all,
    Could any body tell me the table, that contains task list operation deletion data in PM terms of tcode IA01.
    or in case of PP u can see routing data operation.
    It's urgent.....
    Help me & have ur poinrts.
    Regards,
    pradeep phogat

    HI smith,
    Actually in tcode IA02, when we select an operation & make it delete...then in table PLPO i am getting no deletion field. Actually i am making a change BDC for changing the frequency of the operation. So in that i need to consider the deleted operation........
    Reply plesssssss

Maybe you are looking for

  • Can't use ssh publickey, but only for a single host

    I've been using publickeys for a long time to connect my laptop to my server, but lately I can't connect when I'm in this place only. It is the same key and it works perfectly, except when I'm in this specific network. And it doesn't seem to be a fir

  • Mail integration doesn't work - users can't sign up

    I've followed the instructions for the mail and calendar integration from the /opt/SUNWam/samples/integration folder. When users sign themselves up however, they still don't get access to mai. From the Sun ONE Console, an admin can click the 'mail ac

  • Uninstall Microsoft apps

    how do I do this? Tried the normal way but it didn't work. Bought an app to uninstall it but that didn't work either. It's bad enough that belle has been driving me up the wall now this! Can someone please save my sanity?

  • Profile reset request

    I have been trying to get my SNR margin reset for about 3 weeks now.  First of all I was told that it had been done, but would take up to three days to happen...... it didn't. Then I was told that there was a technical problem, and it would take 7-8

  • Possible transport zones from warehouse

    From a particular warehouse , I want to determine all the possible transport zones for which the material of a warehouse is shipped . Then I have to find all sales orders going to that zones.