Help! Still I haven't got any solution to my problem

Dear jquattro
Probably, u haven't got my problem.
I want to know how can I get the WEEK_OF_YEAR ofr the DATE 31-12-2001. Using the Code snippet I had posted before, it returns the value of WEEK as 1, but in reality it should be 53. Can you guide me on why am I getting the wrong output as 1. or can you tell me some other way of solving the same problem?
Kindly HELP as soon as possible!

try the one below which will give the year of the week of current day. Actuall the week will a number less becoz it will count from 0.
import java.util.Date;
import java.util.Calendar;
public class WeekOfTheYear
     public static void main(String args[])
          Date newDate = new Date(System.currentTimeMillis());
                    Calendar calendar = Calendar.getInstance();
          calendar.setTime(newDate);
          System.out.println("WEEK OF YEAR "+calendar.get(Calendar.WEEK_OF_YEAR));
}

Similar Messages

  • HT4623 I updated my iphone 4s on my computer - I lost a lot of pictures - it gave me messages that I had sent back in June and now it wont allow me to play any of my itunes on my phone - any got any solutions to what I should do? HELP

    I updated my iphone 4s on my computer - I lost a lot of pictures - it gave me messages that I had sent back in June and now it wont allow me to play any of my itunes on my phone - any got any solutions to what I should do? HELP

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • I used th Mountain Lion up to date program to redeem my code yesterday (25th July) but I still haven't got any email or anything. Is anyone else having the same problem?

    I used th Mountain Lion up to date program to redeem my code yesterday (25th July) but I still haven't got any email or anything. Is anyone else having the same problem?

    Same here...plopped down >$2700 USD on a new Retina MBP a few weeks ago with the promise of a free upgrade to ML when it was released.  Now, I have no doubts that I'll get the upgrade but I'm not crazy about having to wait behind scads of others who are shelling out a mere $20 bucks.
    I was given the same 72 hour speech by Apple Customer Support.  With my Up-To-Date claim reference number in hand, it seems like they would/could provide an instant turn-around to those of us who are excited/eager enough to call in.
    Apple does a lot of things right but people...especially the clientele that gravitate toward Apple products...expect excellence across the board.  It's like a "nearly" perfect date....beautiful night...best table in the restaurant...delicious dinner with a fabulous bottle of wine...your date is smokin' hot in a little black dress.  On the way back to her place, she unbuckles her seatbelt and leans across with a hand towards your leg and then lets a gigantic, tear-demanding **** that makes you want to gag.  The next day somebody asks, "How was your date?"

  • I have request for free up gradation of mountain lion os. My mac meets all the eligibility standards. I applied it on 25th and haven't got any code till now. Pls help

    I have requested for free up gradation of mountain lion os. My mac meets all the eligibility standards. I applied it on 25th and haven't got any code till now. Pls help

    After you press download, check your Launchpad.  The icon will show up with what looks like a white dot where you'd expect to see a progress bar.  That white dot actually is the progress bar, as ML is a 4GB download and can take anywhere from 1 to 15 hours, depending on your connection speed.  On the average 1.5Mbps economy connection, it will take about 7 hours to download.

  • I haven't got any order confirmation e-mail from Adobe and cannot install Photoshop due to no serial number information.

    Please give me order confirmation e-mail so that I can install Photosho.
    After download installation file, I am stacking due to no serial No information.

    お世話になります。オーダー確認のメールが届かずフォトショップをダウンロードで購入したのですがシリアル番号の情報がないため入力出来ずインストールできません。
    iPadから送信
    2015/01/27 16:58、Chikuromochi <[email protected]> のメッセージ:
    I haven't got any order confirmation e-mail from Adobe and cannot install Photoshop due to no serial number information.
    created by Chikuromochi in ダウンロード、インストール、セットアップ (Japan) - View the full discussion
    OW72247756さん
    AdobeJapanForumをご利用いただきありがとうございます。
    恐れ入りますが、JapanForumですのでご質問内容を日本語で記載していただく事は可能でしょうか?
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7135151#7135151 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7135151#7135151
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in ダウンロード、インストール、セットアップ (Japan) by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • My Lumetri Looks Bin in effects window is empty. I haven't got Any Lumetri Looks.

    My Lumetri Looks Bin in effects window is empty. I haven't got Any Lumetri Looks. How Can I fix this

    Start by posting the name of the program you are using so a Moderator may move this message

  • Why I haven't got any Gem that I Purchased in dragon vale game ?

    Yesterday I bought some sack of gem 1.99$.But I haven't got any gem.I'm not sure about somthing wrong with purchesed system.I wait until last night I got the bill email that shown I bough a sack of gem.It could be possible if you recheck the order again.
    This is Order Number: MGXVYB4KKQ
    Thank you,

    This is not Apple, it is a user forum. I suggest you go the email invoice and report a problem.

  • For the past few weeks when I place a bid on ebay, Firefox crashes. The bid goes through but I have to restart Firefox each time. I have sent a report each time and asked to be notified and as of yet I have not got a solution to this problem.

    For the past few weeks when I place a bid on ebay, Firefox crashes. The bid goes through but I have to restart Firefox each time. I have sent a report each time and asked to be notified and as of yet I have not got a solution to this problem.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • HT1386 hi - i have recently upgraded to an iphone and find that when i open my MS Outlook on my computer, the emails that were on the iphone get wiped out. Has anyone got a solution to this problem? I'm sure it's very simple when you know the answer! Than

    hi - i have recently upgraded to an iphone and find that when i open my MS Outlook on my computer, the emails that were on the iphone get wiped out. Has anyone got a solution to this problem? I'm sure it's very simple when you know the answer! Thanks.

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • Volume icon is disfigured. Any solutions to this problem?

    I logged into my macbook pro like I do everyday and when I clicked on the volume key the volume icon appeared to have weird lines on both the top and the bottom. It has happened to one of my friends a few months ago and she never knew how to fix it and when the same thing happened to me today, I had to find solutions to this problem. I have not found any solutions to this problem whatsoever. Please help me fix this as I do not have an apple store nearby and I have been searching around the internet all day. Thanks!

    Sorry, forgot to enter the image but yeah this is how it looks like ^

  • I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    Hi miffyzoo,
    If you are having bluetooth pairing issues with your iPhone and your Mac, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Regards,
    - Brenden

  • Using IOS 7.1.2 on Safari when I leave the focus on a input on my webpage and rotate my device from Horizontal to vertical, I see a black space on the right and the page is not displayed properly. Any solutions to this problem?

    iOS Version: 7.1.2
    Browser: Safari
    I have a sample log-in page with two input fields and a submit button. When I focus on any of the input fields in landscape mode and rotate my phone and come to the portrait mode I see a weird black space towards the right of my page. Screenshots attached below:
    My page code below:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
        <title>IOS Test</title>
        <style type="text/css">
            a, abbr, acronym, address, applet, article, aside, audio, b, blockquote, big, body, center, canvas, caption, cite, code, command, datalist, dd, del, details, dfn, dl, div, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, keygen, label, legend, li, meter, nav, object, ol, output, p, pre, progress, q, s, samp, section, small, span, source, strike, strong, sub, sup, table, tbody, tfoot, thead, th, tr, tdvideo, tt, u, ul, var
                background: transparent;
                border: 0 none;
                font-size: 100%;
                margin: 0;
                padding: 0;
                border: 0;
                outline: 0;
                vertical-align: top;
            ol, ul
                list-style: none;
            blockquote, q
                quotes: none;
            table, table td
                padding: 0;
                border: none;
                border-collapse: collapse;
            img
                vertical-align: top;
            embed
                vertical-align: top;
            article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video, div
                display: block;
            mark, rp, rt, ruby, summary, time
                display: inline;
            input, textarea
                border: 0;
                padding: 0;
                margin: 0;
                outline: 0;
            iframe
                border: 0;
                margin: 0;
                padding: 0;
            input, textarea, select
                margin: 0;
                padding: 0;
            body
                font-family: Arial, Myriad Pro, Trebuchet MS, sans-serif;
                font-size: 100%;
                background: #F5F5F5;
            a
                text-decoration: none;
            a:hover
                text-decoration: none;
            img, object, embed, video
                max-width: 100% !important;
            .clear
                display: block !important;
                width: 100% !important;
                clear: both !important;
            .body
                position: fixed;
                width: 100%;
                top: 0;
                left: 0;
                overflow-y: scroll;
                -ms-overflow-style: -ms-autohiding-scrollbar;
                -webkit-overflow-scrolling: touch;
                -ms-touch-action: pan-y;
                -ms-user-select: none;
                z-index: 0;
            .body > *
                -webkit-transform: translateZ(0px);
            .header
                background: #fff;
                text-align: center;
                border-bottom: #45A116 solid 8px;
                padding: 5% 10%;
            .content
                width: 70%;
                position: relative;
                margin: 20% auto 10% auto;
                text-align: center;
            .content input
                display: block;
                background: #E6E6E6;
                border-radius: 15px;
                border-bottom: #A8A8A8 solid 3px;
                margin-bottom: 5%;
                width: 96%;
                padding: 4% 2%;
                text-align: center;
                color: #595959;
            .content a
                display: inline-block;
                padding: 2% 10%;
                color: #fff;
                background: #45A116;
                margin-top: 5%;
                border-radius: 5px;
                border-bottom: #2C690E solid 3px;
                -webkit-transition: all 0.1s linear;
                -moz-transition: all 0.1s linear;
                -ms-transition: all 0.1s linear;
                -o-transition: all 0.1s linear;
            .content a:active
                background:#368011;
        </style>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            function adjustBody() {
                var wh = $(window).height();
                $(".body").css({
                    "height": wh + "px"
            $(document).ready(function () {
                adjustBody();
                $(window).resize(function () {
                    adjustBody();
        </script>
    </head>
    <body>
        <div class="body">
            <div class="header">
                <img src="sampleImage.png" alt="Sample Logo" />
            </div>
            <form action="" method="get" id="sampleForm">
            <div class="content">
                <input type="email" value="User Name" onblur="if($(this)[0].value == ''){$(this)[0].value = 'User Name';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'User Name'){$(this)[0].value = ''};" />
                <input type="password" value="Password" onblur="if($(this)[0].value == ''){$(this)[0].value = 'Password';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'Password'){$(this)[0].value = ''};" />
                <a href="javascript:void(0);" onclick="$('#sampleForm').submit();">Login</a>
            </div>
            </form>
        </div>
    </body>
    </html>
    Does anyone have any solutions to this problem?
    Regards,
    Mayank Tripathi

    ALWAYS SAVE YOUR idevice USING ICLOUD !!!! IT SAVES ... ALL !! (includings apps data, but the apps themselves ! USE IT ! i done this...)

  • How im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    how im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    What "auto shutdown problem" are you talking about?

  • I have a MacBook Pro 2008 with 17 inch screen. Experiencing a lock up when turning on power to boot up. While booting up it goes to gray screen with Apple logo and disc spinning icon running and doesn't go to my desktop. Any solutions to the problem?

    I have an early 2009 17 inch MacBook Pro that just went on the fritz. When turning on the power it will go into boot up mode to the gray screen with the apple logo, then the disc icon will be running and will continue running, not allowing to proceed to my desk top screen. It's pretty much locked up at this point where I have to do a forced shut down by holding down the power button. I've tried everything that I know of such as taking battery out and pressing power button for 5 seconds and then reinstalling battery. I've cleaned inside of computer with compressed air duster in can as well as other key commands for resets. I've read that this is a common problem with the earlier MacBook Pros. Is this a problem that I can fix or does it have to be taken in for service? Any solutions to the problem would be greatly appreciated. Thanks!

    This could be a software/state problem or a hardware problem.  Here are steps to resolve the former.
    http://support.apple.com/kb/TS2570
    https://discussions.apple.com/docs/DOC-5282

  • I bought my iphone 5 in Houston Texas May 15 2013 IMEI Nr. 013428009645399.The problem is that in the Greece the country which I live the 4G is not working.If you have any solution for this problem pls. let me know.My email is philcoueth@yahoo.gr Thank yo

    I bought my iphone 5 in Houston on May 15 2013.
    IMEI 013428009645399.The problem I have is that in the country
    which I live GREECE the 4G is
    not working.Please if you have any solution for this
    problem let me know.My email is [email protected]
    Thanking you in advance
    Philip Couridis

    iPhones purchased in the US are NOT guaranteed to work with 4G bands outside of North America.
    For what crazy reason did you purchase an iPhone in the US if you live in Greece?  If your phone needs servicing, it will have to be brought back to the US.  You cannot get that phone serviced in Greece.

Maybe you are looking for

  • My Laptop screen has gone Dark

    I have a Lenovo Ideapad Z500, Intel I7, 3612QM, 6GB Ram with an Nvidia GT740M Graphic Card. My display was absolutely fine, till I installed Windows 8.1. After a few minutes of working properly, the laptop screen went dark. I have installed all avail

  • Using iMAC screen w/a Dell Hybrid desktop

    I have a 27"iMac that I was hoping to use for trading. Unfortunately Apple does not support many Software apps that are typically reserved for native PC's. However with the intro of Virtual bridges such as VMware and Parallels, most feel this is an e

  • I want to make playlists for my music.

    Evey time I make a playlist on my PC I get duplicate songs because of iCloud. How do I stop that from happening?

  • Adobe, add tag feature for symbian 60!!!

    adobe reader for symbian 60 is nearly useless because it requires reader to scroll left and right. There are serveral earlier posts on the tag issue, but adobe does not seem to do anyting about it. However, adobe reader for PocketPC has the auto tag

  • Trying to insert a disk and it doesn't engage and pull the disk in.

    late 2011 model that I just acquired. It seems like the switch is diconected so that when I insert a disk, I hear the click, but the drive doesn't engage to pull the disk in.