Help on calendar.add() adding -60 days

hi all
i am having problem with the add() in Calendar class. i try to get a date that is 60 days prior to the current date, and here is what i coded:
Calendar calendar = new GregorianCalendar();
System.out.println("current day : "+calendar.toString());
calendar.add(Calendar.DAY_OF_MONTH, -60);      
System.out.println("after adding (-60), the day is "+calendar.toString()); and here is the output of the print:
--- getEffectiveDate ---
current day : java.util.GregorianCalendar[time=1088608525321,areFieldsSet=true,a
reAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/New
_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,last
Rule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=36
00000,useDaylight=true,startYear=0,startMode=3,startMonth=3,startDay=1,startDayO
fWeek=1,startTime=7200000,startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayO
fWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=
1,ERA=1,YEAR=2004,MONTH=5,WEEK_OF_YEAR=27,WEEK_OF_MONTH=5,DAY_OF_MONTH=30,DAY_OF
_YEAR=182,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=5,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MI
NUTE=15,SECOND=25,MILLISECOND=321,ZONE_OFFSET=-18000000,DST_OFFSET=3600000]
after adding (-60), the day is java.util.GregorianCalendar[time=1083424525321,ar
eFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInf
o[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,tra
nsitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000
000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=3,sta
rtDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=2,endMonth=9,
endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minima
lDaysInFirstWeek=1,ERA=1,YEAR=2004,MONTH=4,WEEK_OF_YEAR=18,WEEK_OF_MONTH=1,DAY_O
F_MONTH=1,DAY_OF_YEAR=122,DAY_OF_WEEK=7,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=11,H
OUR_OF_DAY=11,MINUTE=15,SECOND=25,MILLISECOND=321,ZONE_OFFSET=-18000000,DST_OFFS
ET=3600000]it looks like it only subtracted 30 days from current date. i wonder what happen to the 60 days. does anyone have any idea why? thanks for ur help.

DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
Calendar calendar = Calendar.getInstance();
System.out.println("current day : " + df.format(calendar.getTime())); // 6/30/04
calendar.add(Calendar.DAY_OF_MONTH, -60);
System.out.println("after adding (-60), the day is " + df.format(calendar.getTime())); // 5/1/04What's the problem?

Similar Messages

  • Calendar adds an extra day when creating an event in ios 8.1.3. Is this a known bug?

    When i add an event using the calendar app in ios 8.1.3, it adds an extra day to the event when using a range of dates. I am able to recreate the problem. when entering the event i select a range of dates and confirm that it is what i want. after submitting, i verify and it has added an extra day at the end. Is this a known bug or am i on my own? Help please. this is annoying having to check each event after entering it.

    Ive reset, restored and this is the second phone. Thought it maybe a wonky screen that would shift it while setting dates. THe only thing I can think of is that I am syncing with google calendar, but it only happens when setting events in ios not if i do it from google website on desktop PC.

  • 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.

  • Adding Business Days to a Date to create New Date

    I am looking to add a formula to auto calculate a new date, but only want to count business Days.
    Currently I am using formula to calculate how many days need to be added:
    //ODD Priority Business Days
    If left ({DEFECT.PRIORITY}, 1)= "1" then 10    
    else  
    If left ({DEFECT.PRIORITY}, 1)= "2" then 20
    else
    If left ({DEFECT.PRIORITY}, 1)= "3" then 50
    else
    If left ({DEFECT.PRIORITY}, 1)= "0" then 10
    Now I need to create a formula to add these numbers to the date field, for conversation purposes, I need to add these business days to my "start date" to equil my "ODD date".
    Example, if my "start date" is 1/1/2009 and it is a Priority 2, then I need to add 20 business days to that, so the "ODD date" would be: 1/29/2009.
    Please help.

    Thank you Garrett Fitzgerald! Please see the modified formula which I meant
    {Startdate}
        + {@BusinessDays}
        - DateDiff("ww", {Startdate}, {Startdate} + {@BusinessDays}, crSaturday)
        - DateDiff("ww", {Startdate}, {Startdate} + {@BusinessDays}, crSunday)
    Regards,
    Raghavendra

  • Calendar off by 1 day

    This has been dogging me for a couple days now. Does anybody know why my calendar would be off by 1 day?
    These are the declarations:
    PTO currentPTO = (PTO)session.getAttribute("currentPTO");
    GregorianCalendar cal = new GregorianCalendar();
    cal.setTime(currentPTO.getEmploymentDate());
    GregorianCalendar todayCal = (GregorianCalendar) Calendar.getInstance();
    int addYears = todayCal.get(Calendar.YEAR) - cal.get(Calendar.YEAR);
    Calendar annivCal = new GregorianCalendar(cal.get(Calendar.YEAR)+addYears, cal.get(Calendar.MONTH)+1, 1);
    This is from the jsp:
    <table>
    <tr>
    <% for(int m=0; m < 12; m++){ %>
    <% String months = StringUtil.whatMonthIsIt(annivCal.get(Calendar.MONTH)); %>
    <td><table border=1>
    <tr>
    <td colspan=7>
    <%=months %> <%=annivCal.get(Calendar.YEAR)%>
    </td></tr>
    <% // Get the number of days in that month
    int days = annivCal.getActualMaximum(Calendar.DAY_OF_MONTH);
    for(int b = 0; b < days; b++){
    annivCal.add(Calendar.DAY_OF_MONTH, 1);
    int day = annivCal.get(Calendar.DAY_OF_WEEK);
    if (day == Calendar.SUNDAY){       %>
    <tr>
    <% } %>
    <td><%=b+1%></td>
    <% if (day == Calendar.SATURDAY) { %>
    </tr>
    <% } %>
    <% } //close days %>     
    </tr><% //close each month      %>
    </table> 
    <% if(m == 2 || m == 5 || m == 8) { //go to next row with the table %>
         </td></tr>
    <% } %>
    <% } %>
    </table>

    Maybe a little help would be nice instead of being mean all the time. Mean all the time. Yep, that's me all right. Mr. Meanie.
    What are your suggestions?Don't use scriptlets in a JSP. Write your application logic in a Java class. At this point, that's the single most important suggestion I can give you. And regardless of what you might think as a result of your apparent hypersensitivity, that's not a "mean" suggestion. You're embarking down a well-known path of bad design practices. If you correct that now, you'll find development to be easier and more productive.
    Or, you can ignore that advice, think I'm being "mean" and continue to struggle with brittle, ugly design. Your call.
    ~

  • Calendar.add for Central African Timezone (GMT +2)

    Hi all,
    I am trying to add x days to 1900-01-01 06:00 at the Central African Timezone (GMT +2). However, the result from simple Calendar.add(Calender.DATE, numDays) is giving me 4 min and 12 seconds less. This only happens when the final date pass March 1, 1903 (which is the only DST day of Central African).
    ie:
    origDate = 1900-01-01 06:00 CAT
    numDaysToAdd = 1154
    resultDate = 1903-03-01 05:55:48 CAT (instead of 06:00)
    I searched around the bug database and someone suggests to always use GMT to do calendar calculation. However, with that, I will get 2 extra hours.
    ie:
    origDate = 1900-01-01 06:00 CAT
    numDaysToAdd = 1154
    resultDate = 1903-03-01 08:00:00 CAT (instead of 06:00)
    Any idea on how to work this out?
    Here is the test code:
    import java.util.*;
    import java.math.*;
    public class Test2
    public static void main(String[] args) {
    TimeZone.setDefault(TimeZone.getTimeZone("Africa/Harare"));
    // Create a date set the Time to 1900/01/01 06:00 AM
    Calendar now = Calendar.getInstance();
              now.set(1900, 0, 1, 6, 0, 0);
              Date d = new Date(now.getTimeInMillis());
              System.out.println(d.toString());          
         System.out.println();
              // try to add 1154 days to d with GMT timezone
              Date d2 = addDaysWithGMT(d, 1154);
              System.out.println("Extra two hours: " + d2.toString());
              System.out.println();
              // try to add 1154 days to d with original timezone
              d2 = addDays(d, 1154);
              System.out.println("Missing 4 minutes and 12 seconds: " + d2.toString());
         public static Date addDaysWithGMT(Date d, int days) {
    Calendar now=Calendar.getInstance();
              now.setTimeZone(TimeZone.getTimeZone("GMT"));
              now.set(d.getYear() + 1900, d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds());
              System.out.println("after set: " + now.getTime());
              now.add(Calendar.DATE,days);
              System.out.println("after add: " + now.getTime());
              now.setTimeZone(TimeZone.getDefault());
              return new Date(now.getTimeInMillis());
         public static Date addDays(Date d, int days) {
    Calendar now=Calendar.getInstance();
              now.set(d.getYear() + 1900, d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds());
              System.out.println("after set: " + now.getTime());
              now.add(Calendar.DATE,days);
              System.out.println("after add: " + now.getTime());
              return new Date(now.getTimeInMillis());
    Any help would be appreciated.
    Thanks,
    Winnie

    Not going to read all that, especially with the unformatted code. However, a couple of things leap out at me.
    * 1903
    * 4 min., 12 sec.
    As a rough guess, this sounds like an accumulation of leap seconds.
    As a second out-of-my-butt guess--this TZ might be one of the less common/"popular"/well-known ones, so it's possible that it has various adjustments to its rules over the years. Note that I don't really know what I'm talking about here--just venting a vague gut feeling.

  • Is there a way to disable/restrict access to Help Restart with Add-ons Disabled or just to Help altogether?

    I have students who use Help>Restart with Add-ons Disabled to disable add-ons, reset things, and go into Safe Mode. I'd like to be able to disable their ability to do so. Is this possible? I am also using a product called Fortres 101, which is a file security application. I can use it to limit file access to read only or even no access. If there are certain files that Firefox uses to allow access to these options, then maybe I can use these file names and make them read only or no access.

    Note that you would only have to hold down the Shift key while starting Firefox to start in Safe Mode.
    Any restriction added via an extension can easily be bypassed by knowledgeable users.
    See also:
    *http://mike.kaply.com/2012/04/10/customizing-firefox-disabling-safe-mode/
    *http://mike.kaply.com/2013/01/11/disabling-safe-mode-in-firefox-17/

  • Is there a way to automatically update events in the Outlook 2010 calendar when adding events in the iCloud calendar in Outlook 2010?

    I am using Windows 7 and Outlook 2010. I have synced my Outlook calendar with my iPhone using the iCloud Control Panel. This is great, but when I add an event in the iCloud calendar in Outlook 2010 and subsequently send out invitations to the event, I get the following error:
    "This meeting is not in the Calendar folder for this account. Responses to this meeting will not be tallied. Do you want to send anyway?"
    I select "Yes" and the invite goes out. However, when invitees receive the email invitation, there should be 2 emails - one from Outlook and one from iCloud. The iCloud invite does not always come through. If the invitee responds to the Outlook email invite, it does not show up on the iCloud Calendar.
    Is there a reason that the iCloud email is not always sent or is there a way to some how update the Windows Outlook Calendar when adding events in the iCloud Calendar through Outlook?

    I have just discovered this problem as well.
    Very annoying!
    Now all off my meetings entered in Outlook on my desktop PC are not syncing with my ipad and iphone.
    If I had known this would have happened I would never have downloaded Version 2.0 of the icloud control panel.
    Does anyone know how I can get the earlier version back?

  • A one day entry on iPhone calendar shows as two days on iPad?!

    I know you're thinking this is probably something to do with timezones differences between the iPhone and the iPad?
    Each year I put the F1 grand prix races in my calendar as a one-day event on the Sunday they take place. On Sunday 27th March 2011 is the Australian grand prix.
    On my iPhone (I'm in the UK and running the latest version on an iPhone 4 etc.) it shows as a one-day event but on my iPad it stradles two-days! When I go to click EDIT on the iPhone entry, despite showing as a Sunday entry only, it shows that it starts on Sunday 27th March and finished on Monday 28th March!
    I spent a couple of hours looking at this. No other grand prix date has this discrepancy between the iPad and the iPhone calendars (that are sync'd with MobileMe calendar). It's just this one date.
    I even had a friend add an event on the same date and it also suggested it was a one day event but when you edit it then it shows it's a two day event.
    And then the only explanation dawned on me. It wasn't time zone setting differences as that would affect all the entries like that the whole year.
    27th March is the date the clocks go forward in the UK for British Summer Time!
    Is it a bug though? Why does the iPhone show it as one day but the iPad show it as two?
    What is it with Apple and calendars and alarms?! And don't start me on the MobileMe calendar and Outlook integration. It's rubbish.

    Hi Boneart - I feel for you. 
    I too have the same issue (Feb 2014) which I have just discovered today as I am not a strong user of all-day events, until today when I tried to schedule annual holidays in my diary.  I can confirm the EXACT SAME issues that you have described with all-day events displacing 24 hrs EARLY for sync Outlook to iOS calendar, and all-day events displaced 24hrs LATE for sync iOS calendar to Outlook.  I also confirm that the issue does not exist for specified time appointments, as you also found. 
    I note from several other discussion threads that Apple have previously focussed on an issue of all-day events syncing to span 2-days; that is not yet apparent in my situation  BUT I will be watching with interest whether a subsequent synchronisation causes the displaced dates to also synchronise back providing the same event apparently spanning 2 days but ACTUALLY existing as two events with identical properties on successive days.
    One oddity is that I also operate in the NZ time zone; I wonder if that is significant???
    For a brief period I trialled iCloud with a thrid-party patch to resolve the native iCloud issue of not providing 2-way synch with Outlook.  That worked beautifully ... until Apple provided an update to the iCloud interface which destroyed all functionality for me.  I'm back to hard-wire sync via USB wire again.  Very frustrating!!
    Finally it is sad that Apple has no interest in these issues.  It strikes me that as soon as there is a non-Apple platform involved they blame the other system and wash their hands of it.
    iPhone 4; iOS 7.0.6 (latest); Outlook 2007 & iTunes 11.1.5.5 on Win7Pro 64x v6.1

  • Adding 1 day to a date in BPEL

    Hi,
    Im trying to add 1 day to a date in a BPEL proces. I saw that there was a xp20:add-dayTimeDuration-to-dateTime so I tried using this in several ways. I didnt expect the input variable to be a string. I tried converting my date to a string and adding 1 day like this:
    xp20:add-dayTimeDuration-to-dateTime(xp20:format-dateTime(string(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum')), 'YYYY-MM-DD'), 'P1D')
    But the variables which I try to fill stays empty. The element which I try to fill is of type dateTime. Is this maybe the error that add-dayTimeDuration-to-dateTime returns a string and it cannot cast it to dateTime?
    Can anyone tell me how to solve this properly?
    Thanks in advance!

    Hi,
    I refactored my expression to look like this:
    xp20:format-dateTime(xp20:add-dayTimeDuration-to-dateTime(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum'), 'P1D'), '[Y]-[M]-[D]')
    But the I receive an error: XMLElement cannot be cast to java.lang.String
    Then I tried:
    xp20:format-dateTime(string(xp20:add-dayTimeDuration-to-dateTime(bpws:getVariableData('inputVariable','payload','/ns1:GereedMeldenRoosterRequest/StartDatum')), 'P1D'), '[Y]-[M]-[D]')
    Because xp20:add-dayTimeDuration-to-dateTime needs a String as input and I dont know how getVariableData returned it but with this I get the error:Parse Error in string function
    Any ideas?

  • Aging - 7 Buckets Report needs to display by Calendar month not by days

    The requirement is to display the Aging - 7 Buckets Report display by calendar month not by days. So is it suggestible to customize it or write a new custom report?
    Please let me know if you have any solution on how to do it? i appreciate your help and time.
    EX:If this is OCT and the report is run during this month
    OCT-10 SEP-10 AGU-10 JUL-10 JUN-10 MAY-10 APR-10
    Customer Amount Current Past Due Past Due Past Due Past Due Past Due Past Due

    Hi
    Could you please let me know if you were able to achieve Aging by bucket months?
    Can we create aging bucket that is monthly and not on the basis of days?
    Regards
    Divya

  • Adding Business Days to a formula

    All-
    The formula below is adding a certain number of days to a call date based on dialer result code, but I want to be able to exclude Saturdays and Sundays.... And if it's not too much trouble holidays when adding the days.
    My formula is called @Workdate:
    If {DIALER_IVRCALLDETAIL.IVRDISPID}=106 then {DIALER_IVRCALLDETAIL.CALLSTARTDT}+3
    else
    if {DIALER_IVRCALLDETAIL.IVRDISPID}=105 then {DIALER_IVRCALLDETAIL.CALLSTARTDT}+3
    else
    if {DIALER_IVRCALLDETAIL.IVRDISPID}=90 then {DIALER_IVRCALLDETAIL.CALLSTARTDT}+2
    else
    if {DIALER_IVRCALLDETAIL.IVRDISPID}=91 then {DIALER_IVRCALLDETAIL.CALLSTARTDT}+3
    Else
    if {DIALER_IVRCALLDETAIL.IVRDISPID}=92 then {DIALER_IVRCALLDETAIL.CALLSTARTDT}+2
    I would appreciate any help you can offer!
    Thanks!
    James

    Lets name the existing formula like this
    @DateCalculated:
    If {DIALER_IVRCALLDETAIL.IVRDISPID} in [106,105,91] then ({DIALER_IVRCALLDETAIL.CALLSTARTDT}+3
        - DateDiff("ww", {DIALER_IVRCALLDETAIL.CALLSTARTDT}, {DIALER_IVRCALLDETAIL.CALLSTARTDT}+3, crSaturday)
        - DateDiff("ww", {DIALER_IVRCALLDETAIL.CALLSTARTDT}, {DIALER_IVRCALLDETAIL.CALLSTARTDT}+3, crSunday))
    else
    if {DIALER_IVRCALLDETAIL.IVRDISPID} in [90,92] then ({DIALER_IVRCALLDETAIL.CALLSTARTDT}+2
        - DateDiff("ww", {DIALER_IVRCALLDETAIL.CALLSTARTDT}, {DIALER_IVRCALLDETAIL.CALLSTARTDT}+2, crSaturday)
        - DateDiff("ww", {DIALER_IVRCALLDETAIL.CALLSTARTDT}, {DIALER_IVRCALLDETAIL.CALLSTARTDT}+2, crSunday))
    Now create new formula like this
    if weekday(@DateCalculated)=7 then
    (@DateCalculated)+2
    else if weekday(@DateCalculated)=1 then
    (@DateCalculated)+1
    else
    (@DateCalculated)
    place this in the report which gives the expected date.
    Regards,
    Raghavendra

  • Calendar items added on iPhone don't show in Outlook

    There are four different color calendars showing on my iPhone 3GS. The items I add from my work PC on my Outlook calendar are blue. The items I add to my calendar on the iPhone are red. The red items do not show on my Outlook calendar. I've tried showing only the blue calendar, and adding the item on my iPhone, but it defaults back to the red calendar. How can I get appointments I add from my iPhone to show on my Outlook calendar?

    Thank you! I had done a search but didn't find that earlier thread. The calendar items posted from my PC were blue, so I switched my default calendar to the blue calendar. I added a calendar item on my iPhone and it showed up on my calendar as blue. Before it was showing up as red. I'm sure this will be in my Outlook calendar on Monday.

  • Calendar repeat on particular day of month

    Using the calendar on the iPhone is there any way to set an recurring event to occur on a particular day, say the 2nd Tuesday of every month rather than the same date.
    If this isn't possible can someone remind me of the link to put in a request to Apple for an enhancement to the software.

    Thanks Meg St._Clair and randers4 for your replies which have been very useful.
    It's a pity that Apple don't provide this facility with the built-in calendar but with so many apps offering extras it is all working out very well.
    And to anyone who forgets important occasions, one of the calendar add-on apps I've installed which has saved me a lot of grief with birthdays and anniversaries is called 'Occasions' by Hand Carved Code. All I now need is an automated card & present sender or perhaps a shop calendar interaction service so I don't forget to buy that card or present when I'm in a shop

  • Help with today's date - 2 days as a string for a file name

    This will be an Expression/Connection String for a Flat File Connection Manager.
    Need it in this format COMPANY20150402.txt except the formula needs to incorporate the DATEADD("D", -2, Getdate())
    "COMPANY" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
    Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
    Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)  +".txt"
    Where do I add the DATEADD part? and be syntactically correct?
    TIA
    Harry

    You do get COMPANY20150402.txt outputted from your expression
    just keep adding DATEADD("DAY",-2,.... to each getdate()
    like
    "COMPANY" + (DT_STR,4,1252) DatePart("yyyy",DATEADD("DAY",-2,getdate())) +
    Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
    Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)  +".txt"
    Arthur
    MyBlog
    Twitter

Maybe you are looking for

  • Getting error while trying to get pending approval list from SOA server

    Hi, I have followed the steps mentioned in the following post to get the pending approval list from SOA server using java api's : Using Java APIs for Oracle Human Workflows | Oracle Technologies Premier But when I am running the java program I am get

  • CalDAV Calendars No Longer Work in Mountain Lion?!

    Since upgrading to Mountain Lion, CalDAV no longer works for me - it fails to log in to the server (which I know is working because the same credentials and address still work on my iPhone and iPad).  I've tried deleting and re-adding the calendar an

  • Issue in work flow !!!

    Hi , I have received 3 messages from FSP System. It routed directly to my personal email address instead of to my business email address.I DID NOT receive the same message in my outlook inbox. I have verified all the information in my outlook persona

  • Animation of letters filling

    Is it possible to animate text/object with 'end' in after effects just like you do with strokes? How can I achieve this? See the video and you'll understand what I wan't to achieve. Guy showing of the 'end' animation on stroke Cheers, Tommie Using Ad

  • Listing item groups on print layout

    Is it possible with the standard print layout designer to list the list of item groups used on that document at the bottom of the document? For example, let's say there are 5 items on an invoice (Item name with item group in brackets) Golf Balls (Gol