Get(Calendar.DATE) not work

Thanks, I have a problem with Calendar, I need that dia = get(Calendar.DATE), if dia > 31 at March, for example, Calendar.MONTH = APRIL, but NO!, dia = 32, 33, 34, 35....
for (int i = 0; i < 366; i++) {
    cal.set(Calendar.YEAR, ano);
    cal.set(Calendar.MONTH, mes);
    cal.set(Calendar.DAY_OF_MONTH, dia);
    dia = cal.get(Calendar.DAY_OF_MONTH);
    mes = cal.get(Calendar.MONTH);
    ano = cal.get(Calendar.YEAR);
    ehData[0] = ""+ano+ "-" + ( mes + 1 ) + "-" + dia;
ehData[i][1] = ""+ha;
ehData[i][2] = ""+ea;
ehData[i][3] = ""+hm;
ehData[i][4] = ""+em;
ehData[i][5] = ""+hd;
ehData[i][6] = ""+ed;
ed++;           
if ( ed == 13 ) {
ed = 1;
hd++;
if ( hd == 11 ) {
hd = 1;
if ( ( (i+1) % 365 )== 0 ) {
ha++;
ea++;
if ( ea == 13 ) {
ea = 1;
if ( ha == 11 ) {
ha = 1;
if ( cal.get(Calendar.MONTH) != mesini ) {
mesini++;
if ( mesini == 12 ) {
mesini = 0;
hm++;
em++;                
if ( em == 13 ) {
em = 1;
if ( hm == 11 ) {
hm = 1;
if ( cal.get(Calendar.DAY_OF_MONTH) == 1 ) {
dia = 1;
if ( cal.get(Calendar.YEAR) > ano ) {
ano++;
mes = 0;
dia++;
cal.set( Calendar.DAY_OF_MONTH, dia );
f = "La última fecha es " + dia + "/"+ mes+ "/"+ano;

Need more information. The drop down calendars are a custom JavaScript that has been developed by a number of different people and use many different methods so without which one and how you implemented it ion the form it hard to determine what is going on.

Similar Messages

  • SSRS 2008 R2 Calendar Control not working and report not refreshing on pressing enter in Chrome.

    SSRS 2008 R2 Calendar Control not working and report not refreshing on pressing enter in Chrome.

    SSRS reports are always best viewed in IE and the report result what you see in IE always will not be same and consistent in thirdy party browswers.
    So consider using IE as workaround.
    Also please refer:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/2188de10-cff9-4e24-b14f-da5121f1c4a4/ssrs-calender-control-not-visible-in-chorme-on-server?forum=sqlreportingservices
    Workaround here:
    http://www.rajbandi.net/Fixing-SSRS-Report-Viewer-control-date-picker-in-Google-chrome/
    -Vaibhav Chaudhari

  • I can't figure out how to log off of my daughter's iTunes account that has been loaded to my PC.  When I want to sync my iPhone, I get her data, not mine.

    I can't figure out how to log off of my daughter's iTunes account that has been loaded to my PC.  When I want to sync my iPhone, I get her data, not mine.

    Hi, Abril_Perez17.
    This may be related to a new feature embedded in iOS7 that shows all purchased music by default.  Go to Settings > Music, then turn off Show All Music.  See if the issue ceases once the feature has been disabled.  This information is located on page 63 of the user guide below. 
    iPhone User Guide
    Regards,
    Jason H. 

  • I have 10.7.3 lion on my computers an iMac and a macbook pro plus a new iPod touch, and two older touches, now trying to sync my calendars is not working deletes some events, duplicates others, I want all my calendars to be the same.  Any ideas

    I have 10.7.3 lion on my computers an iMac and a macbook pro plus a new iPod touch, and two older touches, now trying to sync my calendars is not working deletes some events, duplicates others, I want all my calendars to be the same.  Any ideas

    Have you tried resetting the SMC ?     >  Resetting the System Management Controller (SMC)

  • IPhone 4s calendar does not working properly IOS 8.0

    Hello,
    after installing IOS 8.0 on iPhone 4s calendar does not working properly (is suspended). Could anyone advise ?
    Regards,
    Daniel

    You can zoom before you start taking a video, but not after you start the video. Sorry.

  • With IOS 8.0 on iPhone 4s calendar does not working properly

    Hello,
    after installing IOS 8.0 on iPhone 4s calendar does not working properly (is suspended). Could anyone advise ?
    Thank you in advance,
    Daniel

    I've an iPhone 4s as well,  I'm going to wait till most of my critical apps have had at least one update for "iOS 8 compatibility",  then I might take the plunge...
    Regards,
    Shawn

  • My Yahoo Calendar is not working on Firefox. Everytime I click on the calendar link I am redirected back to the sign in page.

    My Yahoo Calendar is not working on Firefox. Every time I click on the calendar link I am redirected back to the sign in page. It does work on other browsers though. this problem started in the past week.
    Initially the problem was with all browsers, but afdter I did system restorem the problem went away with Google Chrome, and Internet Explorere, but not Firefox

    -> Update Firefox to the latest version 10
    * [[Installing Firefox on Windows]]
    If the problem persists, perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    Check and tell if its working.

  • Iphone 5 cellular data not working,

    iphone 5 cellular data not working, so i reset the all phone settings and it is showing only apple symbol on the screen afer i switched on the top.How to fix this problem

    Hold the sleep / wake button and the home button down until the phone shuts off and then allow it to reboot again
    Please let us know if that helps

  • I have just installed iTunes for the first time. When I run the application I get a "iTunes not working" message. Operating system Vista (32 bit). I have tried reinstalling with all firewalls off, but still no success. Have other people had this problem?

    I have just installed iTunes for the first time. When I run the application I get a "iTunes not working" message. Operating system Vista (32 bit). I have tried reinstalling with all firewalls off, but still no success. Have other people had this problem?

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • Calendar app not working on iPhone 5

    Hi,
    My calendar does not work on my iPhone 5.  It initially only showed one of my calendars.  I turned iCloud calendars off and back on and it temporarily showed my other calendars, but they disappeared again.  Events that I enter on my calendar directly on my phone have disappeared as well.
    Anyone have this issue and found a fix for it?

    Never mind on this. I found the issue.
    I should have been configuring the Google account on the iPhone by using the "GMail" option instead of the "Exchange" option.

  • I keep getting "Applephotostream.exe" not working on my pc.   How can I fix or reset?

    I keep getting "Applephotostream.exe" not working on my pc.   How can I fix or reset?

    My Vista Home Premium  System Type is a 64 bit Operating System.
    I was hoping that someone in the Apple Community would have a solution.
    Still waiting.
    Thanks for your response.  Keep checking back.

  • Get mail button not working can not receive any mail

    Hello
    my mail stops working half way. I can sent messages but suddenly my get mail is not working anymore. not through the button and not through the mailbox menu.
    any help
    regards

    Who is your ISP, how is your mail configured - POP or IMAP and do you get any error messages and if so what are they?

  • How to get calendars and notes from my iPhone into iCloud?

    Hello all,
    yesterday I got a new MacBook Pro Retina at work. This upgrade me to OSX 10.8 from 10.6, so I planned to use iCloud to sync my iPhone 5 and my Mac this way. So far I synced the devices manually via iTunes.
    However, so far I only got Contacts to sync with iCloud correctly. Calendars and notes just don't do it, although their sync is turned on on the iPhone as well as on the Mac.
    All my attempts to get it to work obviously destroyed the possibility to sync calendars via iTunes - after a sync there is just nothing showing up in Calendar. This is really bad as now I can only access my calendars via the iPhone.
    Since my iPhone now contains the most recent calendar and note data the question is even more simple: how can I get these data from my iPhone into iClous so they will also sync with my Mac (and from then on on all devices)?
    It doesn't work by just turning calendar sync on on the iPhone. When I do this, I now see two calendar groups "From my Mac" and "From iCloud". Great, but what I want is to replace "From iCloud" with "From my Mac".
    I have already reset iCloud, but this didn't help either.
    I'm close to desperation, so any hints are very much appreciated!
    Thanks and best wishes,
    Thomas.

    Solved - it was a general sync problem. Today I was not even able anymore to sync my calendars via iTunes. Problem and solution see https://discussions.apple.com/thread/5505069.
    Best,
    Thomas.

  • Calendar Publishing not working for users moved to new PO

    We got the Calendar Publishing working, and it's a treat, very nice integration to our Intranet, teaming etc.
    But for users that has a published calendar, and is then moved, the publishing fails!
    I've set the loglevel for the Calpub to diagnostic, and I see this:
    15:28:00, <GWCAL>, -, INFO, -, Sending request to POA:
    GET /calendar/a2VmQHBpaGwtYXMuZGs_Y249NEI4RTY5MTUuJCQkLiQkJC4xMD AuMTI0MjQyNC4xLjIxNTIuMQ= HTTP/1.1
    Host: gw4.as.dk
    User-Agent: com.novell.gw.calhost.PoaConnection
    X-GW-CalHost-Id: THluZ2J5
    15:28:00, <GWCAL>, -, INFO, -, POA Response:
    Location: http://gw8.as.dk:7171/calendar/a2VmQ...4xLjIxNTIuMQ==
    <html><head><title>Moved</title></head><body>Requested resource has moved</body></html>
    HTTP/1.1 500
    Date: Tue, 16 Mar 2010 15:28:00 GMT
    Server: Linux GroupWise POA 8.0.1
    Content-Type: text/html
    Pragma: no-cache
    15:28:00, <GWCAL>, -, INFO, -, Requesting data from POA. Userid: KEF, Calendar: Rejser, Status: 301
    So first of, it connects to PO4 without problems, then PO8 where it finds the user (correctly), and then it gives an error when trying to access the calendar.
    The calendar has been 'unpublished'/'republished' but the URL doesn't change.
    I can create a new calendar, and move the appointments there, and then it works, but it's not a solution of course :-)

    Hi,
    Had the same problem today.
    Is there a fix or workaround? (GW 801HP2)
    Regards
    Martin
    Originally Posted by fribert
    We got the Calendar Publishing working, and it's a treat, very nice integration to our Intranet, teaming etc.
    But for users that has a published calendar, and is then moved, the publishing fails!
    I've set the loglevel for the Calpub to diagnostic, and I see this:
    15:28:00, <GWCAL>, -, INFO, -, Sending request to POA:
    GET /calendar/a2VmQHBpaGwtYXMuZGs_Y249NEI4RTY5MTUuJCQkLiQkJC4xMD AuMTI0MjQyNC4xLjIxNTIuMQ= HTTP/1.1
    Host: gw4.as.dk
    User-Agent: com.novell.gw.calhost.PoaConnection
    X-GW-CalHost-Id: THluZ2J5
    15:28:00, <GWCAL>, -, INFO, -, POA Response:
    Location: http://gw8.as.dk:7171/calendar/a2VmQ...4xLjIxNTIuMQ==
    <html><head><title>Moved</title></head><body>Requested resource has moved</body></html>
    HTTP/1.1 500
    Date: Tue, 16 Mar 2010 15:28:00 GMT
    Server: Linux GroupWise POA 8.0.1
    Content-Type: text/html
    Pragma: no-cache
    15:28:00, <GWCAL>, -, INFO, -, Requesting data from POA. Userid: KEF, Calendar: Rejser, Status: 301
    So first of, it connects to PO4 without problems, then PO8 where it finds the user (correctly), and then it gives an error when trying to access the calendar.
    The calendar has been 'unpublished'/'republished' but the URL doesn't change.
    I can create a new calendar, and move the appointments there, and then it works, but it's not a solution of course :-)

  • IPhone 6: Data not working on T-Mobile?

    I recently switched from Verizon to T-Mobile's Simple Choice family plan with unlimited talk, text, and unlimited 2G data (with an additional 2.5G 4G data/month until 2016, it will drop to 1G 4G/month).
    I have full text and call functionality (sending and receiving), but my Data simply does NOT work. It always shows that it is connected to the network (4G, LTE) with 4-5 bars, but it has not once worked since I've had the phone. I can use Wifi just fine.
    On the My T-Mobile account app, I go to Device Support > Technical Support > Data Plan Check and it shows this message:
    "Your current data service is not compatible with your device...."
    Using Safari will pull up the u.web2go.com page that states this:
    "Your data plan does not work on this device...."
    I called the stand-alone T-Mobile store I activated the phone from and they said my account information is correct and the data plan is up and going so there should be no issues. (Other family members on my SAME PLAN also received the iPhone 6 and have NOT had any issues with data.) The T-Mobile representative told me to try the same stuff I had been trying, such as turning off my phone, resetting my phone, etc and none of that worked.
    When it was finally 24 hours from activation I called customer care. For some reason calling before 24 hours has passed will only get you thrown into the "it hasn't finished syncing and we can't help you" category. He checked the network in my area and nothing was down. We tried the same things the local T-Mobile store recommended and he even checked I was up to date with iOS (8.0.2) and the Network I was trying to connect to was correct. He submitted a ticket to the advanced team to fix how my phone is receiving the network signal. He told me to turn off my phone every 2 hours and it should start working within the next 3 days. Bummer, because I am PAYING FOR MY PHONE RIGHT NOW. Simply unacceptable that this is happening and I really, REALLY hope this works.
    Has this happened to anyone else?

    ANSWER:
    Apparently my phone was set up to receive Blackberry Data instead of iPhone Data for my data plan.Doesn't make sense to me, but it's true. All they had to do was put my phone "back" on iPhone data in their system and I was good to go in 2 hours! My data works!
    If you have this problem just have T-Mobile verify the data plan you have and (the "phone type") because the T-Mobile rep said mine was incorrectly getting Blackberry data.

Maybe you are looking for

  • How do I delete an e-mail from address books

    I have an e-mail address in my address book that is frozen. I am having a problem editing it or deleting it. What to do?

  • Adding our own function to sap standard function code.

    HI, My requirement is to add a functionality to icon(import) on alv application tool bar so that the customer get a popup message after data is transfered to excel. is that possible. else i want to know the procedure to pass header of my alv when i t

  • Problem with OS update

    Whenever i try to update the OS for my phone an error code will occur and I have to download the entire update again. Only after 4-5 redownloads it gets completed. Now again APPLE has new OS 4.2 amd I am having the same problem withsome error code. C

  • Sharepoint Designer 2007 system requirements

    I have been asked to take over the Website of our local genealogical society. The site was set up and is maintained using Sharepoint Designer 2007. We don't have any server or such, I have a Windows Vista x64 PC home computer. At the download site to

  • Mac OS X Mountain Lion unavailable for download in Nigeria Apple Store.

    My Apple ID is logged into Nigeria Apple Store but Apple says MAC OS X Mountain Lion is unavailable for download.....please advise.