Adding one date to now problem

Hi
I want my application read a file which name will be next day. For example, if today is 20040107 my application will need to read a file called 20040108.
After reading manuals I did:
Calendar now = Calendar.getInstance();
now.roll(Calendar.DATE,1);to get what I want, but thinking that this method is smart and if we are at 20041231 when I add a day it will return 20050101..... but no, this method is not so intelligent... :)
How could I do this. Should I do it by hand or could somebody recommend me another method to avoid invent the wheel ?
thanks in advance
Javier

Try Calendar.add() instead
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#add(int,%20int)

Similar Messages

  • How to display the date from callender for more than one date format items

    i have one form which contains many date format items. i want to show the calendar and take the date from calendar.
    i am successfully show the calendar and take the date from calendar for one date item.
    my problem is i want to do same for all date format items in the form
    can any one help me?
    thanks

    Maybe you could provide more information.
    What calendar ? what item works ? what other don't ?
    is the issue in the different format masks ?
    Please elaborate more your situation.
    Francoisit is not the issue of different format masks.
    i created a block which name is jbeanblock. in this block item is bean. bean has one trigger when_custom_item_event.
    the code of this trigger is :
    DECLARE
    eventName varchar2(30) := :system.custom_item_event;
    eventValues ParamList;
    eventValueType number;
    LC$Date varchar2(256);
    LC$Day varchar2(256);
    LC$Month varchar2(256);
    LC$Year varchar2(256);
    v_date date;
    BEGIN
    IF (eventName='CALENDAR_EVENT') THEN
    eventValues := get_parameter_list(:system.custom_item_event_parameters);
    get_parameter_attr(eventValues,'CALENDAR_EVENT_DATE',eventValueType, LC$Date);
    get_parameter_attr(eventValues,'CALENDAR_EVENT_DAY',eventValueType, LC$Day);
    get_parameter_attr(eventValues,'CALENDAR_EVENT_MONTH',eventValueType, LC$Month);
    get_parameter_attr(eventValues,'CALENDAR_EVENT_YEAR',eventValueType, LC$Year);
    Clear_Message;
    select to_date(LC$Day||'/'||LC$Month||'/'||LC$Year,'dd/mm/yyyy') into v_date from dual;
    :ds_employee.hiredate:=v_date;
    synchronize ;
    END IF;
    END;
    hiredate is the item of the ds_employee table. hiredate has trigger when_new_item_instance. The code is
    Set_Custom_Property('JBEANBLOK.BEAN',1, 'SHOW_CALENDAR','50,50');
    ds_employee is my table name. which has 2 date items. one is hiredate and another is date_of_birth.
    for hiredate it is working. if i want to do same thing for date_of_birth also then how can we do?

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Problems adding Bridge Data to prepaid (Allset) iPhone5

    Anyone having problems trying to add bridge data to a prepaid (Allset) phone. I've tried to add 3GB to my iPhone 5 all day today and I've had no success. I've tried doing through (1) the new My Verizon Mobile App, (2) dialing *611 and following the prompts and (3) on my PC while logged into my "My Verizon" account. All three methods result in a "system error" and I can't add any bridge data. The only thing that worked, was it allowed me to put $25 on account by charging my credit card. So now I've been taken for $25 and can't do anything with the money on now have in my account. A call to customer service was a complete waste of time. The CSR told me to do the *228 Activation code on my 4G LTE iPhone 5. I'm not a CSR and I know you don't use *228 on an a 4G iPhone! After wasting 30 minutes and being told my SIM card "had to age" (very creative), I got tired of the snow job and hung up. Is anyone else having problems adding bridge data? Please advise if you have succeeded in adding bridge data today.

    Why have a Prepaid forum that is not monitored by CSR's who can actually do something about the issues posted by Prepaid customers? I'm not looking for a "sorry to hear about your problem" reply, I'm looking for answers/solutions. 
    What a ridiculous arrangement. This Prepaid sub-forum should be deleted so customers don't waste their time posting problems here.
    Sent from my iPad

  • I am using Windows 8.1 i have an External Hard Disk and one drive is now inaccessible due to sudden power failure few days ago. Now it shows "Data error (Cyclic redundancy check)". I want all my important files and Pics. How ?

    Hi,
    I am using Windows 8.1
    I have an External Hard Disk i have partitioned it to 4 parts.
    One drive is now inaccessible due to sudden power failure while listening Music from that drive few days ago.
    Now it shows "Data error (Cyclic redundancy check)".
    I tried all the procedures provided here like
    chkdsk /f, diskpart, rescan etc
    but no result :( (i mean all processes failed. They could not detect the drive).
    Please help me to get those data, pictures and project files.
    thank you

    Then why aren't you posting this in the Windows 8 forums found @
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro
    This is a Windows 7 forum for discussion about Windows 7.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • HT5622 In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    In settings it has a spot to add an e mail address to icloud . What does adding one do ? I haven't finished it by verifying through e mail but my phone keeps saying I am using it for icloudin this phone. Ugh now what ?

    if it's a message coming from your yahoo account, it means that your account has been compromised, not your phone itself. i would suggest changing the password for your email account

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • Apple recently replaced my broken iPhone 5 with a new one. I backed up all my stuff in iCloud. When I set up the new phone I apparently used a back up from an earlier date. Now I am missing some of my stuff. How do I go back and use the most current I cln

    Apple recently replaced my broken iPhone 5 with a new one. I backed up the contents of my phone with iCloud.
    When setting up my new phone I used an iCloud back up from an earlier date. Now I am missing some of my most recent stuff. How
    Do I go back to use the proper iCloud back up to set up my new phone?

    Tap settings> general> reset> erase all content and settings...then you'll have a chance to setuo your phone again

  • I have one iPhone 4s, one iPad 2 and wife's iPhone 4s. yesterday I have updated all with ISO 8 under one apple id, now my problem is that in same WiFi when Any of phone receive phone all the three gazettes ring simultaneously . how to resolve this.

    I have one iPhone 4s, one iPad 2 and wife's iPhone 4s. yesterday I have updated all with ISO 8 under one apple id, now my problem is that in same WiFi when Any of phone receive phone all the three gazettes ring simultaneously . how to resolve this.
    regards
    rbv

    Tell your wife to get her own Apple ID. If you do not want continuity/handoff to work with calls, on both devicesgo to Settings==>>FaceTime==>> Turn OFF iPhone cellular calls.

  • How do i get backed up purchases from an old iphone to a new one, but the only problem is an ipod is backed up into the new phone and i cant get my iphone data on to the new phone because its under i pod

    how do i get backed up purchases from an old iphone to a new one, but the only problem is an ipod is backed up into the new phone and i cant get my iphone data on to the new phone because its under i pod?

    Thanks very much!
    Although I had to add everything again to the playlist, at least I can just copy it over in future!

  • Adobe Photoshop CC worked one time? Now get Problem Report Error?

    Adobe Photoshop CC worked one time? Now get Problem Report Error?  tried for 3 days to get working... Help!  please

    I dug a wee bit deeper and thanks to
    Sami Vuoritie 1 month ago
    I was able to fix it. In Filebrowser-view I had a coverflow-preview mode on. Changing it to list-mode problems are gone!
    hope this works for you M00ch?

  • In condition records section Search help problem at one data type

    hi there,
    we are upgrading 4.6c version to ecc 6.0 past january. but in
    vk11/vk12/vk13 condition master records sections, we have a problem for
    one data type search help. when we want to join sales deal code to sales
    detarmination condition, at one tables rows type price list (data type =
    pltyp_d) does not allow f4 (search help).
    thanks your interesting.
    Sinan Alt&#305;ner
    Betek Boya ve Kimya Sanayi A.&#350;.
    SAP CONSULTANT / ABAP Developer

    Hi surya,
    I per your suggestion i did like this ,
    data : date1 like sy-datum.
    types : w_date1 type sy-datum.
    date1 = w_date1(ztable-date1). "ztable-date1 - is screen field.
    but it is giving error "The field "W_DATE1" is unknown, but there is a field with the similar name "DATE1" . . . ."
    actually that value is coming after triggering PBO event but i want that value in at time of calling F4 help at that screen filed
    suppose on screen the fields like
    date : 30.08.2008.
    matnr : ( .............F4 )  '".....on this field when i m pressing F4 that time only that above date materials should come as per my first query see my first thread.
    thanks,
    Sanket.

  • I deactivated my mac adobe CS5 on one computer, and now i cannot activate it on another, it says the activation code is not valid, what  is the problem?

    i deactivated my mac adobe CS5 on one computer, and now i cannot activate it on another, it says the activation code is not valid, what  is the problem?

    Please refer:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    Click the Chat Now button at the end of the page and talk with a live agent who would resolve it ASAP.
    Regards,
    Ashutosh

  • Updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    well... actually you are right dahveed, i had a dodgy copy of galaxy on fire 2 (boring game), that's what was giving me the issue. i followed your posts about the MAS etc., and discovered this was the problem. Corrected. You're a knowledgable man, thank you

  • I bought a new Iphone 4s, gave the older to my wife , made a new account for her, erased all data and now when i sync them they interfere with the other. Eg: if i delete an app ou buy one it appears on her phone, what shoul I do?

    I bought a new Iphone 4s, gave the older to my wife , made a new account for her, erased all data and now when i sync them they interfere with the other. Eg: if i delete an app ou buy one it appears on her phone, what should I do?

    Have a look here...
    Automatic Downloads...
    http://support.apple.com/kb/ht4539
    Turn off Automatic Downloads. Settings > Store

Maybe you are looking for

  • Clearing of manual entries in GR/IR not happening

    Hi All, I've made two manual entries in the GR/IR account. The second entry being the reverse of the first, so basically they cancel out each other. But as these arent linked to a PO, the line items arent being cleared by F.13 I tried manual clearing

  • Master Detail Form - Problem using built in wizard

    Hi There We are working on Application express 2.2. We are facing problems for a master detail form using Wizard. The details are as follows : >> 1) Master table : TS_ENTRY_TXN trans_id P.K. 2) Detail table : TS_ENTRY_TXN_DETAIL a)trans_id b)sub_tran

  • Changing GLOBAL_NAME in 11g RAC

    Hi, All - I am running a two node RAC 11g (11.1.0.7) database on RHEL5. I need to change the GLOBAL_NAME. SQL> select * from global_name; GLOBAL_NAME dbname SQL> ALTER DATABASE RENAME GLOBAL_NAME TO dbname.companyname.com I just want to confirm that

  • FCP X rendering

    For some reason I can render a project, close the system, then when I open it again it seems to start rendering again..... Anyone know why it might do this? I render long projects with a lot of graphics for motorsport in preparation for the commentat

  • Balance carryforward consolidation unit with equity method

    Hi experts, One question in relation with balance carryforward in SEM BCS 4.0. Do Additional finantial data of Consolidation unit with equity method must be carried forward to following periods? I have a problem with AFD validation for equity method.