First week of december?

Not a java question sorry about that, was just wondering what do you guys think about it. I was having a heated debate with one of my co workers on what does "by the end of first week of december" means? I am saying that this year end of first week of december would be 2nd/3rd of December 2005 while he is insisting that it would be 7th of december 2005.
what do you guys say????

Don't you just love those "discussions" where nobody defines their terms?
If I'm not mistaken, the ISO (ISO-8601?) defines the first week of a period to be the first week that contains four days in the period. So that would be November 28 to December 4, if your weeks start on Monday, or November 27 to December 3 if they start on Sunday.
However if your weeks are not constrained to being calendar weeks but can start on any day of the week then obviously December 1 to 7 must be the answer.
If you want to make this a Java question, the GregorianCalendar class implements the ISO's rules and you can callcalendar.get(Calendar.WEEK_OF_MONTH)to see what it thinks. Note also the setFirstDayOfWeek method.

Similar Messages

  • Formula to always calculate first week of next month

    Can you please give me pointers regarding the following problem:
    A System generated report that I want to be able to e-mail (no manual parameter selection involved!) . 
    New Customers that have a start date the first week of the following month.
    Using today as an example Monday, JUly 25: create a formula that counts new starts 8/1/2011 - 8/7/2011 and then when it generates again on Monday, August 1: the result should be a count of new starts Sept 1 - sept 7, 2011.... and so forth.

    Hi
    I think you don't have to count True or False by using a formula.  You can very well create record selection formula (filter condition) using the below :
    {ServiceInfo.StartDate} >= DateAdd ("m",1 ,CurrentDate) - DatePart ("d",CurrentDate )+1
    and
    {ServiceInfo.StartDate} <= DateAdd ("m",1 ,CurrentDate) - DatePart ("d",CurrentDate )+7
    This will filter data and can be inserted count without any issues.
    Thanks,
    Sastry

  • I purchased an Ipad mini in Thailand in first week of July. Now the screen of the ipad has lost its brightness and smells like somethings burning inside when switched on. I am in Dubai now and want to know if I can have it exchanged here in Dubai?

    I purchased an Ipad mini in Thailand in first week of July. Now the screen of the ipad has lost its brightness and smells like somethings burning inside when switched on. I am in Dubai now and want to know if I can have it exchanged here in Dubai?

    Contact support and ask them. http://www.apple.com/support/contact/

  • Battery Wear Level 7% just from the first week use.

    I just bought a Toshiba NB250 a week ago
    I was checking my hardware around and Installed Notebook Hardware Control and it showed me a Battery Wear Level of 7% just in the first week.
    Why is that ? Is that normal ? I have my Qosmio X300 for a year now and its battery wear level is 0%
    What is the minimum acceptable wear level to be liable for battery change under warranty ?
    Thank you !

    > What is the minimum acceptable wear level to be liable for battery change under warranty?
    It is very complicated question and I don't think someone here will give you exact answer to this question.
    Notebook hardware control is good tool but if this tool is really relevant is other question.
    What is maximum notebook running time on battery power supply?

  • I just bought iphone5 last 2 weeks.At first week i can use itune apps after these last 3 days i try to use itunes again and i couldnt open it...same as app store...please help me to solve my problem...thanks and god bless...

    i just bought iphone5 last 2 weeks.At first week i can use itune apps after these last 3 days i try to use itunes again and i couldnt open it...same as app store...please help me to solve my problem...thanks and god bless...

    Thanks Jakob. You are correct.
    I just finished another "experiment".
    I transcode the whole clip 1,2,3,4,5,6,7 to another ext Western Digital HDD and got the Error -50 too. Problem is this ext Western Digital HDD is Daisy chained to the LaCIe.
    So, I tried transcoding to another ext Western Digital HDD connected to my router. And this time NO PROBLEM.
    So, I should readjust the FW800 connectors.
    What do you mean by the controller of the Firewire ?
    Thanks
    Jakob Peterhänsel wrote:
    All I'm saying is, the error -50 from the Finder normally means there is something spooky going on.
    Here, the LaCie drives become unstable. In the few cases where I'v actually opened the cage and put the HDD into another mount, the HDD seems to be fine, so I suspect it's either the FW connectors of the controller itself.
    If the drive is under warranty, replace it, otherwise, move your data to another drive if it startes to do so frequently.
    Here, the drive will 'behave' normally for some time after a reboot of the OS, but it's a pain to reboot every X hours...

  • I bought my mini Ipad the first days of December.  Now I cann´t use it because it shuts down everytime I use an application.

    I bought my mini Ipad the first days of December. Now I cann´t use it because shuts down the applications.  I would like to know how to proceed?

    Hello valecasafont,
    Congratulations on your new iPad mini!  I would be concerned too if my iPad was unexpectedly powering off.  I found an article with steps you can take when you encounter an issue like this.  I recommend following the steps below (these steps refer to an iPhone, but the steps also are relevant for an iPad):
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    You can find the full article here:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • First week day

    Hi, how can i set the first week day in os x Leopard server calendar?
    thanks for your help!

    SOLVED:
    In my default Locate:
    [español (España)][es_ES]
    [minimalDaysInFirstWeek][4]
    [firstDayOfWeek][2]
    If I change the Locale width:
    [español (España)][es]
    [minimalDaysInFirstWeek][1]
    [firstDayOfWeek][2]
    The jvm options:
    -Duser.language=es -Duser.country=

  • Get first week of the month

    Hi,
    how to get first week of the month from the query
    i tried this but not gwtting
    SELECT TO_CHAR('09/30/2007','W') FROM DUAL
    thanks
    Edited by: 896398 on Jan 18, 2012 3:17 AM

    896398 wrote:
    how to get first week of the monthAssuming week starts Sunday:
    SELECT  GREATEST(TRUNC(TRUNC(your_date,'MM') + 1,'IW') - 1,TRUNCyour)date,'MM')) week_start_date,
            TRUNC(TRUNC(your_date,'MM') + 1,'IW') - 1 + 6) week_end_date
      FROM  dual
    / If week starts Monday:
    SELECT  GREATEST(TRUNC(TRUNC(your_date,'MM'),'IW'),TRUNCyour)date,'MM')) week_start_date,
            TRUNC(TRUNC(your_date,'MM'),'IW') + 6) week_end_date
      FROM  dual
    / SY.

  • Unlocked iphone 4s available at the first week of november?

    i'm going to new york next week, is the unlocked iphone 4s available at the first week of november? hoping the answer is yes!

    All Apple has said is "Coming in November"...that could be anytime between 11/01 & 11/30/2011.

  • Purchased 2 iphone 5's.  Both have cracked the screen in the first week.  Never had this problem with the previous versions iphones being so fragile.

    I purchased 2 iphone 5's.  One for my husband and one for me.  Both have cracked the screen in the first week. I even have a case on mine. Never had this problem with the previous versions iphones being so fragile.  Has anyone else experienced this?

    Tests by some of the web sites and magazines claim that the iPhone 5 is in fact more rugged than previous models. That doesn't obviate the possibility of an assembly defect that would make yours more susceptible to damage, but if you dropped or impacted them and they cracked, then your warranty will not apply and you'll have to pay for replacement, either the AppleCare+ "deductible", if you purchased AppleCare+ with your iPhone, or Apple's normal out-of-warranty replacement charge.
    You can of course make an appointment at an Apple Store, explain the situation, and hope that there's something they can do for you. Don't count on it, though.
    Regards.

  • MSI K8N Diamond Plus - Guide to my first week

    OK, not a newb here, but been around the block quite a bit.   MSI K8N Diamond Plus is my 5th A64 mobo (ECS K8M800, my daily undestroyed computer, K8T800, my 12 year olds gamer, Asus A8V Deluxe, first 939 system, Abit AN8 SLI, first SLI gamer, and now the MSI Diamond Plus).   Had the KDP (K8N Diamond Plus) for more than a week now, and here's what I've learned.
    This is state of the art again, and we have no one to blame but ourselves for the pain this causes us when we upgrade like lunatics 
    And as usual, the drivers and BIOS are al Dente (i.e. not cooked enought yet, a little raw)
    MSI is also oddly silent on this system, which is wierd, as they are a large company, and specifically cater to enthusiasts.  But their BIOS guys are MIA.  Hopefully this will not be forever.  Asus, ABIT, DFI, Epox are always fast with fixes
    The board is a nice design, with everything basically accessible, as much as any other board.   Lots of purposeful components, not too many dumb frills.  No tooty fruity colors, but rather practical parts.
    The new 2 piece NForce chipset is fine, and the MSI guys gave us a decent, but funky cooler.  It gets a little warm to the touch when you pound on it with Prime95, or Quake4, but other than that it is fine
    The manual has a zillion typos, and fortunately for us in this forum, we have shared what we've learned.  The translation from Chinese to English leaves quite a bit to be desired, and hopefully, MSI will learn from Asus and Abit and get a better translation service.  In 2006 this is just plain stupid, especially with a $225 board   
    As usual, the mobo supplied tweaker utilities are just aweful.  They look like a hallucination from a Hunter S Thompson book, and they work about as well.  Core center is a sad state of affairs, and the rest of them just burrow their way into your otherwise stable system and cause it to have poor behavior.  And therefore as usual, the BIOS is the best way, if slowest, to tweak this bundle of parts
    Which brings us to the BIOS.  IMHO, the worst one I've seen on a high end board.  ZERO explanation for half the settings (this is not strange in and of itself, BIOS is still a black art, but in a tweakers board, we should have some basic explanation  )
    There seem to be adequate settings in the BIOS for all sorts of doodads and gizmos, but who the heck knows what half of them are.  Roger points out rightfully, that we now need to "Tune" across all these different intermediary bus structures and test.  But with the lack of info from either NVidia, MSI or anyone else for that matter, its kinda hard to know where to start.
    The board is clearly sensitive, which is a result of it being high strung.  This is no different than any "first out" product I've ever bought.  Most take 2 or 3 turns of the crank to get totally stable and forgiving.  This one hated my OCZ platinum EL 2Gb kit memory, and it brought out the worst in one of the SLI based EVGA 7800 GT COs.   These components worked in the Abit AN8 SLI (although not always great), but the MSI has ZERO tolerance for even the slightest pertubation from the memory.  It was BSOD city until I removed both of these components by process of elimination that took probably 100 hours
    Once I removed the bad components, and replaced the memory with Geil Ultra X 2x512 2-2-2-5, it worked great, ran Prime95 for 10 hours with no errors, and seems reasonably stable.  I've RMA-d the bad 7800GT CO back to EVGA, and will report back on how SLI behaves when I get the new one (cross shipped of course, I haveno patience )
    I also now need to replace the 2Gb RAM kit with something that the board will tolerate.  I may RMA the 2Gb kit back to OCZ and try another one, but I dunno.   I love OCZ but I have a bad feeling about this, even though they have great!!! support.  I may try OCZ PC4000 or the RAM that Roger successfully used.
    I did upgrade to the 1.16 BIOS, and found that some new things were added, as well as voltage control in Cell was a little better, but registration of changes in voltage is still a disaster.   I adjusted a bunch of times, it didn't register, and I ended up smoking a new A64 3700+ Diego with 1.95 volts, even though the BIOS claimed it was 1.53.  I had to rebot to see what was going on.   The Thermalright XP-90 kept the proc from melting down through the earth
    Finally, I hope this board attracts more people, and therefore more tweakers that can figure out all these gadgets and settings.  Everyone flocked to the Asus X16 SLI product, which is too bad, as this one needs lots o' folks to hack it up for us to figure out what is going on.
    The on board Creative audio sounds lousy to my ears, and I will replace it with an Audigy 2ZS gamer that I had in the Abit.  It just sounds better, but hopefully the drivers will not trash my newly stable system.   Creative scares me, they scare me alot.
    I've been able to get the CPU up to 2.4Ghz, with a .5 volt bump to the CPU and 2.9 volts into the Geil memory.  So far, so stable, no smoke coming out yet 
    I hope this info is somewhat valuable to someone on this board.  I will post details of all changes that I make, as others are doing, so we can at least take care of ourselves with this thing.

    Quote from: nanohead on 15-February-06, 01:17:10
    Which brings us to the BIOS.  IMHO, the worst one I've seen on a high end board.  ZERO explanation for half the settings (this is not strange in and of itself, BIOS is still a black art, but in a tweakers board, we should have some basic explanation  )
    There seem to be adequate settings in the BIOS for all sorts of doodads and gizmos, but who the heck knows what half of them are.  Roger points out rightfully, that we now need to "Tune" across all these different intermediary bus structures and test.  But with the lack of info from either NVidia, MSI or anyone else for that matter, its kinda hard to know where to start.
    first of all, i do think that all the settings in the BIOS have an explanation in the manual, even if it's a basic one. if that explanation doesn't tell you everything in detail, is because if you do need a detailed explanation of the settings, you probably shouldn't be messing around with those settings.
    Quote from: nanohead on 15-February-06, 01:17:10
    I did upgrade to the 1.16 BIOS, and found that some new things were added, as well as voltage control in Cell was a little better, but registration of changes in voltage is still a disaster.   I adjusted a bunch of times, it didn't register, and I ended up smoking a new A64 3700+ Diego with 1.95 volts, even though the BIOS claimed it was 1.53.  I had to rebot to see what was going on.   The Thermalright XP-90 kept the proc from melting down through the earth.
    wanna tell me how did you get 1.95V on that mobo?
    Quote from: nanohead on 15-February-06, 01:17:10
    I've been able to get the CPU up to 2.4Ghz, with a .5 volt bump to the CPU and 2.9 volts into the Geil memory.  So far, so stable, no smoke coming out yet 
    a 0.5V  bump? again, you must be joking. maybe 0.05V.

  • I have a Rocketfish mini display port to VGA adaptor cord for a macbook pro, it was working fine the first week, now it does not show what I am seeing on my laptop on my lg Flat screen tv. It only shows the space background but not any icons. Any help??

    Is there anything I should do to the TV or any settings i should do from my actual Macbook? It only shows the space background but not any of my icons or what i am seeing on my laptop screen. It is a new adaptor which was purchased last week.

    It seems as though though it may be a connection issue, possibly hardware or adapter. Make certain the connections are TIGHT.
    For software you may try a smc reset:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    Try a pram reset:
    Shut down your Mac.
    Locate the following keys on the keyboard: Option, Command (⌘), P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on your Mac.
    Immediately press and hold the Option-Command-P-R keys. You must press this key combination before the gray screen appears. Continue holding the keys down until your Mac restarts, and you hear the startup sound for the second time.
    Release the keys.
    If no joy you can take it in to an Apple store genius bar for a free evaluation make an appointment first.
    http://www.apple.com/retail/geniusbar/

  • BB Q10. Conclusions of the first week experience

    Hey there,
    I have moved from OS7 device to BB Q10 a week ago and here are my first brief conclusions (mostly for those who are yet considering of the purchase)
    good stuff:
    - the device looks good itself and it is completely not slippery;
    - I do like the new screen;
    - the OS 10 interface is interesting to me;
    - the camera is good;
    - BB voice messaging is supported over your carrier's network;
    - the browser works very fast (even though I use that rarely);
    - the battery is enough for one busy day;
    - there is a good Skype installed (however see also the notes below);
    terrible stuff:
    - BIS is no longer supported (well, someone might reckon this as an advantage; I say that there must always be a choice - either I use BIS or don't use it with my new device);
    - my gmail & yahoo imap free accounts hang up regularly on wifi when I come from network carrier to a place where I am connected to wifi (the wifi is always on and I have enough places saved in my device memory); when I enter my account settings it says i.e.. "The server imap.gmail.com for account XXX is not responding. The server name in your account settings might be incorrect, or the server might be temporarily offline. Check your settings to make sure the server name is correct and try again." I either restart device or switch off and on wifi so that it would resume for a while. With my carrier's network the email works fine.
    - there is no Russian text input by translit (see http://supportforums.blackberry.com/t5/BlackBerry-Q10/Russian-language-input-translit/m-p/2442771#M3...); I had to engrave my keyboard with Russian letters for the first time for the last 6 years, luckily I was in Russia for a while; all those who use Russian language with their BB device for now can't normally use that as long as they are outside of Russia (where you could engrave it for a modest fee).
    stuff to be improved:
    - it is not that easy to copy saved numbers from your contacts (you shall open editing and then copy it out of there);
    - it is not possible to paste the saved numbers in Skype (you shall thus develop your memory );
    - the birthday details from the contact list are not linked to a calendar (the question is then what is that data stored for?) - I have already skipped one birthday because of that;
    - there is no percentage of remaining batter on the top screen (you can only find that through settings);
    - whatsup is not integrated into the BB hub;
    - there is no Viber application for OS 10;
    - the choice of sounds to set up is extremely poor;
    - the OS 10 with its applications hang couple of times a day (either buttons on the screen are not responding or the power button does not dim the screen or smth similar take place);
    - when I read a message in hub it remains unread and it becomes marked as read only upon reviewing in particular mail folder.
    My overall conclusion is that the device with the new OS 10 is completely raw and flawed. I feel myself like a volunteer tester whereas I do not like such a role when paying a full price for a product that is considered as good and is widely distributed on a market. Such a new marketing approach of Blackberry would do no good for their success in a future. 
    I would seriously advice NOT TO TRUST even respectful brand and read open source info prior to a purchase

    Yeah the BB9900 worked excellent!  I still have faith in BB but my faith is wandering after all this waiting.
    I'm sure BLACKBERRY is monitoring all this and reporting it to management whereby they're aware and putting the mandate to their software development team to remedy all these glitches before bad news travels too extensively.
    I was amazed that the T-Mobile Rep's from 2 different nearby stores were telling me the same message (they didn't recommend BB10 due to customer complaints and software issues.  This along is enough to sink BB having all these rep's discouraging customers from buying BB phones. Where are the BB Dealer Rep's when you need them?
    I told the rep's that regardless of the current BB10 issues, that all the other BB phones and software work flawlessly, and that the network was stable, dependable and secure.  One rep told me they just don't have any feed back or much interaction with BB dealer reps.  If I was a BB Dealer Rep. I'd be in each T-Mobile store twice a week giving them updates, testimonials and giving my phone number out to customers who come in and have additional questions, which the store rep's cant answer.  That's what these BB Rep's should be doing...being advocates for BB.
    I don't think the BB Dealer Rep's are doing much, if any thing other than collecting a pay check.  These issues I  imagine will be resolved within 30-45 days.  If not, I'm sure they'll lose more than just stock prices falling. 
    As a Crackberry addict my fingers are crossed for Blackberry and that it recovers from all this whereby it becomes the powerhouse it once was for so many years. 

  • 770 broken in first week!

    I have a 770 that is not a week old yet, and from day 1 I had difficulty switching it on. A couple of times I had to remove the battery and start again. It's now developed a fault with the screen, so that when I eventually manage to switch it on, the screen is white, with a couple of broad grey/black bars running vertical!
    Any ideas how to get it fixed, the website only seems to cater for phone faults, and I can't return it to the shop as it was bought for me as a gift!!!!!

    My 770 developed a number of problems after the first two weeks, the biggest are; 1 - only vertical lines on the blank display, 2 - the device turns on by itself. In attempting to find resolution to the problem (US), I used the nokiausa.com web site and also called the customer support line. Nokia has not upgraded their support systems to adequately care for their Nokia 770 user base. This is a big deal IMHO for future expansion of the user base. Who wants to buy a device that breaks and you can't get it fixed?! The help line operator said that the nokia support computers were down so she couldn't give me a return number or service center address. Right. That's a lie on its face. After digging around on the web site, I found a service request form under FAQ, Repair, Repair, and was able to hack the form input fields in the browser URL enough to get a printable return form with an RTA# and the address of the nearest Certified Repair Center. I also Googled up the Service Center to verify that they could in fact work on the 770 and weren't just a non-technical clearing house... I also called them to verify they were actually competent to do the repair. Here's the root link: https://www.nokiausa.com/support/repair/repairform This link was broken after I first found it, so that's why I hacked the URL line to get a form. You have to enter in some bogus information like Carrier and cell phone number, since Nokia apparently forgot to instruct their web designers that they have other products...

  • First Week of 2010

    Hi All,
    I'm using CFMX 6.1 and facing an issue in getting the currect Week number of week starting 03-Jan-2010.
    Coldfusion returns 2 for #Week('03-Jan-2010')#, but I wanted this to be as 1, as it is the first full week of the year.
    Is there any way to acheive this with CFMX 6.1?
    Many thanks

    Roll your own: http://en.wikipedia.org/wiki/ISO_week_date.
    But first check whether someone's already done it and posted to cflib.org.
    Adam

Maybe you are looking for