SDCCN - Wrong day in cell "Task date"

Hi experts,
1. when i create new EWA service in SOLMAN in (TCODE:DSWP>Operations>Solution monitoring>EarlyWatch Alert>Create), the service is created on the day for example. 07.oct.2010 (this is correct), but
<a href="http://www.imgplace.com/viewimg215/8088/531ks.jpg">http://www.imgplace.com/viewimg215/8088/531ks.jpg</a>
2. if i run in a sattelite system TCODE: SDCCN task REFRESH SESSION, and then sattelite system downloaded from SOLMAN service EarlyWatch Alert for Solution Manager, so he has the wrong date. (-2 days) 05.oct.2010
<a href="http://www.imgplace.com/viewimg571/8219/712e.jpg">http://www.imgplace.com/viewimg571/8219/712e.jpg</a>
I tried it on two different systems
Thaks for answer
Miroslav

Hi Miroslav,
Check SDCCN -> GoTo -Settings - Task Specific '
Click on Data Request Settings
Check the tab
'Data request to be performed'
Check the number of days if it is set to 2 days before.

Similar Messages

  • I bought my i pod touch from us but i live in india .i have been using this from many days fr just a few days before something went wrong with it and the date and time has changed what do i do?

    i bought my i pod touch from us but i live in india .i have been using this from many days fr just a few days before something went wrong with it and the date and time has changed what do i do?

    Have you went to Settings>General Time&Date and correct the time.  Make sure the time zone is correct too.  Also go to Settings>General>Inernational and make sure the Gergorian calender is selected.

  • Address book rotating date feature sets wrong DAY

    Has anyone noticed that the rotating date setter in address book does not work properly. When you try to set a Birthday date - say 22nd it will end up at say 20th always a couple of days wrong. Even setting on Imac and synching it will sync wrong DAY - month and year are OK.
    Weird or What!

    Interestingly, I also have this problem, and I also live in NZ... (hi ppls~)
    After reading the posts in this topic, namely Holly's posts about problems occuring between Nov to Feb, I went and changed someone's b'day several times to see what happens.
    What I found out was b'days that are set on or before October 29 display correctly, but b'days set on or after oct 30 display one day early.
    Daylight saving for 2005 starts on the 2 of Oct, so it probably isn't to do with that.
    The other thing I found out, is if you have a b'day set to the first of march, it disappears. It doesn't display at all.. until you go to a leap year, such as 2004. There you will see that the b'day is set to the 29 of feb: one day early. But it probably isnt' related to the 29th of feb, because birthdays set on or after 6th of march are correct, but on or before the 5th of march are a day early.
    Now... one more thing i found out is that if your week starts on sunday (as set in the preferences), the 6th of march is the first day (sunday) in the second line of the march 2005 calendar. The 29th of oct is the last day (saturday) in the second to last line of the oct 2005 calendar.
    This may be a coincidence, but highly unlikely.
    These dates don't change if you change the year to 2004 in sys preferences. Maybe it's just a freak bug, or maybe it can't be fooled by simply changing the year in system prefs..
    I agree with Andy Burson, though, one day early is better than one day late

  • Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Don't worry I've sorted it! I just had to turn off Reminders as well in iCloud. Calendar then worked fine, even when I turned Calendar and Reminders back on.

  • DAY() Returns Wrong Day!

    Have a column (H) set to date format. I enter many (many, many) dates into the cells of this column in this format: 1/5/8 which is wrong, should have been, 1/5/08. If you just do "8" instead of "08" you'll get a year of "0008". In an attempt to fix this I start by adding a formula to cell J2 to give me a cell with the date of H2 but with the year set to 2008, like this:
    J2=DATE("2008",MONTH(H2),DAY(H2))
    Where H2 contained "Jan 8, 0008".
    The result was "Jan 6, 2008"!
    More...
    9/1/8 becomes Aug 30, 2008
    9/2/8 becomes Aug 31, 2008
    9/3/8 becomes Sep 1, 2008
    Off by 2 days in all cases.
    I think it starts getting off when the date is somewhere around Oct 14,1582. Dates after this seem to have no error but dates before this do, sometimes. For example, in cell B4 I see the error at the Oct 14-15,1592 dates but in other cells I do not. Talk about weird. Extra weirdness: entering "10/10/1582" into some cells and it'll set that cell to Oct 20,1582 once you hit enter. (If you're a historian you probably wouldn't want Numbers to record anything about Columbus.)
    Would someone see if they can duplicate this?
    Enter this formula in the C column (start at C2) and fill down for several rows:
    =DATE("2008",MONTH(B2),DAY(B2))
    Then enter your test dates into cells in the B column. See what you get.

    The problem is not with year 1582.
    Under 10.6.1, its with dates before 1/1/1583
    Enter such a date in cell B2
    In cell C2 enter =month(B) you will get the wrong 12
    In cell D2 enter the formula =day(B) you will get the wrong 30.
    In fact its perfectly normal.
    The used calendar is the Gregorian one which started at the end of 1582.
    I filed this report:
    +Your tracking number for this issue is Bug ID# 7274370.  You may check status on this report via the 'My Originated Problems' tab.
+
    +04-Oct-2009 05:08 PM Yvan KOENIG:+
    +Funny annoying behavior.+
    +If I run Numbers (tested only with versions 2.0, 2.0.3 because I've no longer v2.0.1 and v2.0.2)+
    +In B2, I enter a date this way:+
    31/1/8
    +I get the date 31 janvier 0008 which seems to be the normal behavior.+
    +Under 10.4.11, if I use the formula:+
    =DATE(2008;MOIS(B),jour(B))
    +I get a correct 31 janvier 2008+
    +Under 10.6.1, I get the wrong:+
    +30 déc. 2008.+
    +It's not really surprising because+
    +=mois(B) returns 12+
    +and =jour(B) returns 30+
    +Same behavior with an English system.+
    +Of course it's a bit annoying.+
    So, I filed this addenda.
    +04-Oct-2009 05:42 PM Yvan KOENIG:+
    +In fact, I understood that, as the used calendar is the Gregorian one, the results are not silly.+
    +Given that, it would be useful to change the behavior of Numbers when we enter 1/1/8 (in fact every entry with a single digit for the year).+
    +After all, it would not be odd because entering 1/1 returns correctly 1/1/2009+
    +and applying the formula =Date(2008,MONTH(B),DAY(B)) returns 1/1/2008 if B is blank ;-)+
    +The User Guide states:+
    +A date value The value is formatted using the date format+
    +specified in the International pane of System+
    +Preferences and is treated as a date value in+
    +formulas. To view the date formats, in the Cells+
    +inspector choose “Date and Time” from the Cell+
    +Format pop-up menu and then select the Date+
    +pop-up menu.+
    +A 2-digit year value greater than 50 is displayed+
    +using the prefix 19; otherwise the prefix 20 is+
    used.
    +For example, 1/1 displays as Jan 1, 2008, and Jan+
    +05 displays as Jan 5, 2008.+
    +I read it as+
    +A 2-digit year value greater than 50 is displayed using the prefix 19+
    +A 2-digit year value smaller or equal than 50 is displayed using the prefix 20+
    +but maybe it's due to my poor English. After all, my understanding leave the case s of a single digit undefined +
    Yvan KOENIG (VALLAURIS, France) dimanche 4 octobre 2009 17:28:54

  • Bug: Repeating Google Calendar Events Show Up On The Wrong Days

    I've created a Google Calendar event that repeats "Daily," every two days, from 6:00pm to 6:30pm. It shows up fine in my Google Calendar, but the Pre's Calendar puts them on the wrong days. For example, the repeating event that should be scheduled for today shows up tomorrow (offset by +1 day). 
    I tried turning off network timezones, but the bug remains.
    Any help would be greatly appreciated. If this is a bug, how can I submit it to Palm?
    Thanks! 
    Post relates to: Pre p100eww (Sprint)
    Some new data:
    If I create the repeating event on my Pre, rather than via Google, it shows up on the Pre correctly. However, it only shows up for one day via Google (today); the event is not repeated. When I edit the event in Google, it's setup correctly. I tried saving the event from there, but it doesn't cause Google to recognize it should repeat.
    Very frustrating.
    Even more new data:
    Created yet another event via my Pre instead of via Google. This time Google picked up the correct repeat pattern, and my Pre now shows it on the correct days.
    Calendar sync needs serious work, based on my experience. I have issues with Facebook events showing up an hour later than they should, too. Dunno if this has been fixed yet.
    New Data (01/28/2010)
    Not sure why, but the above success reverted back to being off by one day; temporary success only.
    Message Edited by tlpbsd on 01-28-2010 11:52 AM
    This question was solved.
    View Solution.

    Hi, another quick question: you say you turned off network timezones.... did you make sure that the (now manually set) timezone is correct?
    Sounds similar to other issues related to the timezone being off, but usually the appointments were off by hours... not day(s).  However if your timezone is set to something really odd and the event you're creating is around midnight (again depends on a few things here), then MAYBE this is it.
    If it isn't, one of the support guys will have to chat with you privately about possibly collecting logs, getting more granular details, etc.

  • Send a reminder mail to a person in 'Assigned To' 7 days before the 'Due Date'

    I want to create a workflow on SharePoint list and it should send a notification email to 'Assigned To' person before 7 days of Due Date (another column in the list).
    I'm new to SharePoint. Please explain the steps in detail.
    Any suggestions would be greatly appreciated. Thank you.

    Hi Sekhar,
    Hope the below links should be useful to you.
    http://sharepoint713.blogspot.in/2011/09/sharepoint-designer-workflow-to-send.html
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/e85c2fcb-81fa-4c8d-9f0d-3c4799de771b/send-a-reminder-mail-5-days-before-and-1-day-before-the-due-date?forum=sharepointcustomizationlegacy
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1e2912f4-3119-49b0-b620-e67f629596d0/how-to-send-alert-on-2-days-before-of-task-due-date?forum=sharepointcustomizationlegacy
    https://mysharepointchronicles.wordpress.com/2012/11/05/sharepoint-list-with-workflow-email-reminder-set-to-send-30-days-from-created-date/
    http://markeev.com/Articles/item-expiration-reminders-in-sharepoint-using-workflow.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to set SPD workflow to send email one day before the Due Date? ?

    I need to add a step in workflow for a item tracking list: send reminder email one day before the due date.
    I thought there is an Action in SPD: wait for [Due Date] to equal [Today]minus one day
    But there is no way to do that.
    I figured may be I need to create a calculated field [cal-date] that set to: =[today] plus one day.
    Then in workflow -
    wait till [Due Date] is equal to [cal-date], and send an email
    What is the formula for the above calculated field [Today] plus one day?

    Hi,
    You can add an approval action( such as Start Approval Process) -> click "Approval" -> go to “Change the behavior of a single task” . Then you will
    see the "When Task expires" stage.
    You can have a look at the blog:
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx 
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers
    if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Eric Tao
    TechNet Community Support

  • Add 45 or 90 days to an input date, depending on date

    I'm a newbie - I want to add 45 days to an input date if it is before 01/01/2012 and add 90 days to the input date if it is after 01/01/12. So far, i have the following:
    if (LEOPDate100B_RequestedBOE.rawValue ne null) then
    Num2Date(Date2Num(LEOPDate100B_RequestedBOE.formattedValue,"MMM D, YYYY")+ 90,"MMM D, YYYY")
    else
         null
    endif
    I'm not sure how to add the qualifier date. I've looked in all the forums i can find and can't find any help. Any assistance is greatly appreciated!

    Hi Paul,
    I modified code TextField1.rawValue = TextField1.rawValue + 365
    to TextField1.rawValue = TextField1.rawValue + 365 * 24 * 60 * 60
    I enter in EffectDate 08/30/2010 and get in ExpDate field wrong date like 4/19/8353. How to fix it? How to make ExpDate field empty if EffecDate is empty?
    Thanks.

  • ITunes keeps sying (for 10 Days now) "Collecting your Data from your iTunes Library"

    Is it normal that it takes >10 Day to collect my Data?
    My Library is 37 Gb big.

    After admittedly only a quick read the one thing you don't say is how you are trying to make this move.  Most people with moving library issues do it the wrong way.  Plenty of web sites tell you how to do it the wrong way.
    If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive.

  • To find the no of working days b/w given date

    Hi ABAP Experts,
             Here i have one requirement .
             table is tfacs
              in  this table i want to know the no of working days b/w  the given date. Here i have attached my code .pls go through it and do me needful.
    TABLES : tfacs,vbrk.
    DATA: BEGIN OF ty_tfacs OCCURS 0,
            ident TYPE tfacs-ident,
            jahr TYPE tfacs-jahr,
            mon01 TYPE tfacs-mon01,
            mon02 TYPE tfacs-mon02,
            mon03 TYPE tfacs-mon03,
            mon04 TYPE tfacs-mon04,
            mon05 TYPE tfacs-mon05,
            mon06 TYPE tfacs-mon06,
            mon07 TYPE tfacs-mon07,
            mon08 TYPE tfacs-mon08,
            mon09 TYPE tfacs-mon09,
            mon10 TYPE tfacs-mon10,
            mon11 TYPE tfacs-mon11,
            mon12 TYPE tfacs-mon12,
            basis TYPE tfacs-basis,
            fenum TYPE tfacs-fenum,
            wenum TYPE tfacs-wenum,
            load TYPE  tfacs-load,
            string1(31) TYPE c,
            string2(31) TYPE c,
            string3(31) TYPE c,
            string4(31) TYPE c,
            string5(31) TYPE c,
            string6(31) TYPE c,
            string7(31) TYPE c,
            string8(31) TYPE c,
            string9(31) TYPE c,
            string10(31) TYPE c,
            string11(31) TYPE c,
            string12(31) TYPE c,
            uk(31) TYPE c,
            total1 TYPE i,
            total2 TYPE i,
            total3 TYPE i,
            total4 TYPE i,
            total5 TYPE i,
            total6 TYPE i,
            total7 TYPE i,
            total8 TYPE i,
            total9 TYPE i,
            total10 TYPE i,
            total11 TYPE i,
            total12 TYPE i,
            END OF ty_tfacs.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_jahr FOR tfacs-jahr MODIF ID b1.
    SELECT-OPTIONS : mon FOR tfacs-mon01  MODIF ID b1.
    SELECT-OPTIONS :  s_month FOR vbrk-erdat MODIF ID b2.
    SELECTION-SCREEN : END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME.
    PARAMETERS  r1 RADIOBUTTON GROUP c DEFAULT 'X' USER-COMMAND flag .
    PARAMETERS  r2 RADIOBUTTON GROUP c .
    SELECTION-SCREEN END OF BLOCK b.
             INITIALIZATION
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 NE space.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'B2'.
            screen-output = 1.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'B1'.
            screen-output = 1.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
              start - of - selection
    start-of-selection.
      IF r1 = 'X'.
        PERFORM get-data.
        PERFORM display-data.
      ENDIF.
    &      form  get-data
           text
      -->  p1        text
      <--  p2        text
    form get-data .
      DATA :  total1  TYPE i.
      SELECT * FROM tfacs INTO TABLE ty_tfacs
                                     WHERE ident EQ 'IN'
                                     AND   jahr IN s_jahr.
      LOOP AT  ty_tfacs WHERE ident = 'IN'.
        IF sy-subrc EQ 0.
          PERFORM get_string USING ty_tfacs-string1
                                   ty_tfacs-mon01
                                   ty_tfacs-total1.
          PERFORM get_string USING ty_tfacs-string2
                                    ty_tfacs-mon02
                                    ty_tfacs-total2.
          PERFORM get_string USING ty_tfacs-string3
                                   ty_tfacs-mon03
                                   ty_tfacs-total3.
          PERFORM get_string USING ty_tfacs-string4
                                         ty_tfacs-mon04
                                         ty_tfacs-total4.
          PERFORM get_string USING ty_tfacs-string5
                                         ty_tfacs-mon05
                                         ty_tfacs-total5.
          PERFORM get_string USING ty_tfacs-string6
                                         ty_tfacs-mon06
                                         ty_tfacs-total6.
          PERFORM get_string USING ty_tfacs-string7
                                         ty_tfacs-mon07
                                         ty_tfacs-total7.
          PERFORM get_string USING ty_tfacs-string8
                                         ty_tfacs-mon08
                                         ty_tfacs-total8.
          PERFORM get_string USING ty_tfacs-string9
                                         ty_tfacs-mon09
                                         ty_tfacs-total9.
          PERFORM get_string USING ty_tfacs-string10
                                         ty_tfacs-mon10
                                         ty_tfacs-total10.
          PERFORM get_string USING ty_tfacs-string11
                                         ty_tfacs-mon11
                                         ty_tfacs-total11.
          PERFORM get_string USING ty_tfacs-string12
                                         ty_tfacs-mon12
                                         ty_tfacs-total12.
        ENDIF.
        ty_tfacs-uk = ty_tfacs-total1 + ty_tfacs-total2
                      + ty_tfacs-total3 + ty_tfacs-total4
                      + ty_tfacs-total5 + ty_tfacs-total6
                      + ty_tfacs-total7 + ty_tfacs-total8
                      + ty_tfacs-total9 + ty_tfacs-total10
                      + ty_tfacs-total11 + ty_tfacs-total12.
        MODIFY  ty_tfacs TRANSPORTING  total1 total2 total3
                                       total4 total5 total6
                                       total7 total8 total9
                                       total10 total11 total12
                                       uk.
      ENDLOOP.
    PERFORM write1-data USING 'COU' 'YEAR' 'MONTH01'
                               'MONTH02' 'MONTH03' 'MONTH04'
                               'MONTH05' 'MONTH06' 'MONTH07'
                               'MONTH08' 'MONTH09' 'MONTH10'
                               'MONTH11' 'MONTH12' 'TOTAL WDAYS' .
    LOOP AT ty_tfacs.
       PERFORM write1-data USING ty_tfacs-ident ty_tfacs-jahr
                                 ty_tfacs-total1 ty_tfacs-total2
                                 ty_tfacs-total3 ty_tfacs-total4
                                 ty_tfacs-total5 ty_tfacs-total6
                                 ty_tfacs-total7 ty_tfacs-total8
                                 ty_tfacs-total9 ty_tfacs-total10
                                 ty_tfacs-total11 ty_tfacs-total12
                                 ty_tfacs-uk.
    ENDLOOP.
    ENDFORM.                    " get-data
    TOP-OF-PAGE.
      FORMAT COLOR 5 ON.
      WRITE :/10 'COUNTRY',
              20 'YEARS',
              35 'MON01',
              45 'MON02',
              55 'MON03',
              65 'MON04',
              75 'MON05',
              85 'MON06',
              95 'MON07',
              105 'MON08',
              115 'MON09',
              125 'MON10',
              135 'MON11',
              145 'MON12',
              170 'total wdays'.
      FORMAT COLOR OFF.
      WRITE :/ SY-ULINE.
    *&      Form  display-data
          text
    -->  p1        text
    <--  p2        text
    FORM display-data .
      LOOP AT ty_tfacs.
        WRITE :/10 ty_tfacs-ident,
                20 ty_tfacs-jahr,
                30 ty_tfacs-total1,
                40 ty_tfacs-total2,
                50 ty_tfacs-total3,
                60 ty_tfacs-total4,
                70 ty_tfacs-total5,
                80 ty_tfacs-total6,
                90 ty_tfacs-total7,
               100 ty_tfacs-total8,
               110 ty_tfacs-total9,
               120 ty_tfacs-total10,
               130 ty_tfacs-total11,
               140 ty_tfacs-total12,
               150 ty_tfacs-uk.
      ENDLOOP.
    ENDFORM.                    " display-data
    *&      form  get_string
          text
         -->p_0250   text
         -->p_0251   text
         -->p_0252   text
    form get_string  using    p_0250   " month
                              p_0251   " string
                              p_0252.  " total
    p_0250 = p_0251.  " move month to string
    TRANSLATE p_0250 USING '0 ' . " translate
    CONDENSE p_0250  NO-GAPS.     " condense
    p_0252 = STRLEN( p_0250 ).    " pass length of string to total
    ENDFORM.                    " get_string
    ***&      Form  write1-data
          text
         -->P_0306   text
         -->P_0307   text
         -->P_0308   text
         -->P_0309   text
         -->P_0310   text
         -->P_0311   text
         -->P_0312   text
         -->P_0313   text
         -->P_0314   text
         -->P_0315   text
         -->P_0316   text
         -->P_0317   text
         -->P_0318   text
         -->P_0319   text
         -->P_0320   text
    *form write1-data  using    p_0306
                              p_0307
                              p_0308
                              p_0309
                              p_0310
                              p_0311
                              p_0312
                              p_0313
                              p_0314
                              p_0315
                              p_0316
                              p_0317
                              p_0318
                              p_0319
                              p_0320.
    *WRITE :/ p_0306,
            p_0307,
            p_0308 left-justified,
            p_0309 left-justified,
            p_0310 left-justified,
            p_0311 left-justified,
            p_0312 left-justified,
            p_0313 left-justified,
            p_0314 left-justified,
            p_0315 left-justified,
            p_0316 left-justified,
            p_0317 left-justified,
            p_0318 left-justified,
            p_0319 left-justified,
            p_0320 left-justified.
    *ENDFORM. " write1-data
    from this report what i am getting is year and its 12 months but my requirement is i will give date using select options and i should get the total no of  working days in b/w this date.

    Use the following code to find no of working days b/w given date. Use the correct factory_calendar_id in the function module. L_DAYS will display the required result:
    PARAMETERS: p_date1 TYPE sydatum,
               p_date2 TYPE sydatum.
    DATA: date1        LIKE scal-date,
         date2        LIKE scal-date,
         correction   LIKE scal-indicator,
         calendar     LIKE scal-fcalid,
         factorydate1  LIKE scal-facdate,
         workday1      LIKE scal-indicator,
         factorydate2  LIKE scal-facdate,
         workday2      LIKE scal-indicator,
         l_days TYPE scal-facdate.
    CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
      EXPORTING
        date                       = p_date1
        correct_option             = '+'
        factory_calendar_id        = 'US'
      IMPORTING
        date                       = date1
        factorydate                = factorydate1
        workingday_indicator       = workday1
      EXCEPTIONS
        correct_option_invalid     = 1
        date_after_range           = 2
        date_before_range          = 3
        date_invalid               = 4
        factory_calendar_not_found = 5.
    IF sy-subrc = 0.
      CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
        EXPORTING
          date                       = p_date2
          correct_option             = '+'
          factory_calendar_id        = 'US'
        IMPORTING
          date                       = date2
          factorydate                = factorydate2
          workingday_indicator       = workday2
        EXCEPTIONS
          correct_option_invalid     = 1
          date_after_range           = 2
          date_before_range          = 3
          date_invalid               = 4
          factory_calendar_not_found = 5.
      IF sy-subrc = 0.
        l_days = factorydate2 - factorydate1.
        WRITE: / l_days.
      ENDIF.
    ENDIF.

  • Need to add number of days to users end date.

    Hi,
    I have a code where we are adding number of days(30) to current date and then updating user's end date in IDM DB.
    Now we have a requirement where we need to add number of days(30) to existing end date of user instead of adding to current date.
    *public String incrementDate(int daysToAdd)
         // Start date
         log.info("NotifyLastDayOfService::incrementDate(): Enter");
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
         Calendar c = Calendar.getInstance();
         c.add(Calendar.DATE, daysToAdd); // number of days to add
         String newDate = sdf.format(c.getTime());
         log.info("NotifyLastDayOfService::incrementDate(): Exit");
         return newDate;
    Have any body implemented this scenario?
    Please suggest.
    Thanks,
    Kalpana.

    Hi Nayan,
    Here is the code:
    System.out.println("----inside increment date method-----");     
              HashMap<String, String> hm = new HashMap<String, String>();
              HashMap<String,Date> modifyMap=new HashMap<String,Date>();
              SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
              tcResultSet usrList = null;
         String enddate = null;
         hm.put("Users.Key",usrKey );
         try {
         usrList = this.usrIntf.findUsers(hm);
         usrList.goToRow(0);
         Date endDate =usrList.getDate("Users.End Date");
         System.out.println("-----users end date-----"+endDate);
         String userEndDate=sdf.format(endDate);
         System.out.println("-----String value of users end date-----"+userEndDate);
         Calendar cal=null;
         System.out.println("-----Calender date-----"+cal);
         cal.setTime(endDate);
         System.out.println("-----end date-----"+endDate);
    cal.add(Calendar.DATE, Integer.parseInt(daysToAdd)); // number of days to add
    Date newEnddate = cal.getTime();
    System.out.println("-----new end date-----"+newEnddate);
    //usrList.setEndDate(Edate);
    modifyMap.put(userEndDate,newEnddate);
    usrIntf.updateUser(usrList, modifyMap);
    System.out.println("updated user's end date in OIM DB");
    //System.out.println("-----updated user's end date in OIM DB-----");
    logger.info("NotifyLastDayOfService::incrementDate(): Exit");
         System.out.println("-----new date-----");
         } catch (tcAPIException e) {
         logger.error("Error in finding end date for user" + e);
         } catch (tcColumnNotFoundException e) {
         logger.error("Error in finding end date for user" + e);
    In th log file, I can see that the code is not executing this line:
    cal.setTime(endDate);
    end date is of type Date and stores users end date from DB. Please help in resolving this issue.
    Thakns,
    Kalpana.

  • How to find the day of a particular date

    Hi,
    I am working on an app which will display 15 days in retrospect with the date and day for any entered date. For example if the user enters June 15, 2001 the app has to display dates from June 1 and the corresponding day of those dates like sunday, monday... Is there any function which would help me.

    use the java.text.SimpleDateFormat and java.util.Calendar classes
    // look at the javadocs for SimpleDateFormat for mor info about the formatting
    // string that is passed to the constructor
    // the format below translates to : "Fri, Aug 17, 2001"
    SimpleDateFormat formatter = new SimpleDateFormat ( "EEE, MMM d, yyyy" );
    Calendar cal = Calendar.getInstance();
    Date theDate = new Date();
    cal.setTime( theDate );
    for ( int i=0; i<15; i++ ) {
        String dateStr = formatter.format( cal.getTime() );
        System.out.println( dateStr );
        cal.add( Calendar.DAY_OF_YEAR , -1 );
    }output of this code:
    Fri, Aug 17, 2001
    Thu, Aug 16, 2001
    Wed, Aug 15, 2001
    Tue, Aug 14, 2001
    Mon, Aug 13, 2001
    Sun, Aug 12, 2001
    Sat, Aug 11, 2001
    Fri, Aug 10, 2001
    Thu, Aug 9, 2001
    Wed, Aug 8, 2001
    Tue, Aug 7, 2001
    Mon, Aug 6, 2001
    Sun, Aug 5, 2001
    Sat, Aug 4, 2001
    Fri, Aug 3, 2001

  • I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out.  How do I do that if the new ipad mini release date isn't until "later in November", which is beyond the 14 days from my purchase date?

    I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out. I am currently still within the 14 day return/exchange window but how can I exchange it if the new ipad mini release date isn't until "later in November", which would be beyond the 14 days from my purchase date?  If apple announces a new version of a product you just purchased but won't actually release it for more than 14 days, how can you possibly exchange the one you just bought?  Is my only option to return the one I bought on the 10th (so return by 10/24) and then not have an iPad until the new one is available for purchase?  Or would it make any sense to return the one I bought, get a new one, which would presumably have another 14 day return window, and then exchange THAT one for the new ipad mini w/ retina when it comes out (hopefully within that second 14 day window)?

    Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.

  • How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    DT,
    If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
    =A+60
    Couldn't be much easier.
    Jerry

Maybe you are looking for

  • How can I repair a HD without start up cd?

    I have problems with my MacBook Pro I upgrade to Lion and it works fine but som HD problems start happen, and it looks that I need to repair my HD, but I don`t have a start up CD, I only have the Mac OS X; Should I have use that?

  • Need help with slideshow widget appearing online

    Hey out there a big thanks in advance for this. I have slideshow widgets set up for my artwork and graphics pages on my website and they were working fine before the last Muse update.  I then went into Muse to add more images to said slideshows and e

  • Photoshop elements 6 won't launch

    I am running osx 10.5.8 on power mac g5.  Have been using photoshop elements for years and it suddenly stopped launching - just freezes on scanning for presets.  Only thing I could figure out was that it got corrupted some how - bought a new elements

  • Char Values on query

    On left hand side of query designer what are the char values on query for an infoobject is it master or transaction data. Regards, Manish

  • Please any one can tell about

    4)     In real time scenarios where we will USE LSMW and Where we use BDC      (Session or Call    transaction). What is the deciding factor for it.