To_date ISO Year and ISO Week

Hello,
I have a Character-String '0949' which is the Iso Year and Iso Week.
To get this string I use this code:
to_char (trunc (sysdate, 'IW'), 'IYIW')Is it possible to convert this String back to a date?
I tried it with this code:
to_date ('0949', 'IYIW')but only get an ORA-01820 error.

WITH data AS (SELECT 0749 iwiy FROM dual)
    ,separated AS (SELECT to_date(substr(to_char(iwiy,'fm0000'),-2),'YY') AS yy
                         ,to_number(substr(to_char(iwiy,'fm0000'),1,2)) iw FROM data)
SELECT trunc(yy,'IY') + (iw-1) * 7
FROM separated
/hope this helps....
Roger

Similar Messages

  • How do I find the screen with my personal iPod (my name's iPod) so I can download from my purchased or free songs/pods from my computer? My iPod has opened to that for 3 years and this week I can't find it: not on purchased page or on Apple store page.

    QUESTION from an American in India:
    How do I find the screen with my personal iPod (my name's iPod) so I can download from my purchased or free songs/pods from my computer? My iPod has opened to that for 3 years and this week I can't find it: not on purchased page or on Apple store page.

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • IMac quality going down? My broke down after 1 year and 4 weeks!

    I bought the top of the range iMac on July 14, 2011. Today is 1 year and 4 weeks later - it is in the apple shop because the graphic and logic card are broken. With a fee of over 600 dollars.
    Is this what one can expect? Just angry!

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    All manufacturers have the occasional bad device. It is the combination of items from multiple manufacturers. That is why Apple Care is a good investment. For about US$100 this would have been a free repair and you would have two more years of warranty coverage.

  • Difference between ISO Year and Year

    Why ISO Year of 31st Dec 2008 is 2009?

    Hi,
    An ISO year always has 52 or 53 whole weeks. The year starts with week 01, the week with the year's first Thursday in it. For 2009, the first week starts on Dec. 29 2008.
    [ISO year|http://en.wikipedia.org/wiki/ISO_week_date#Relation_with_the_Gregorian_calendar]
    Regards
    Peter

  • Macbook pro dies after 1 year and 3 weeks

    So..
    I Purchased my MBP last year, without the 3-year applecare plan.
    I have been using it mainly for internet, music and all the
    other normal everyday things people use their computers for.
    Three weeks after my 1-year warranty expired, the computer
    simply stops working..
    I took it to a licensed apple technician, and most chances are
    that the motherboard is the problem. (he still has the computer)
    My question is: is this normal? I mean, one year and 20 days?? really?
    Even if I did have applecare, this is completely unacceptable !!
    A new motherboard is not going to be cheap.. It's a major flaw..
    This is a machine that should last a lot longer and it sure costs like one.
    what should I do next? anyone knows of a similar situation? every piece
    of advice will help.
    thx
    A. Raviv

    Hi,
    I notice that your location is Israel. Did you purchase the MBP in Israel? I understand things may have changed, but after doing some searching it seems that the 3-year AppleCare either:
    1) was not offered in Israel until recently
    2) is still not offered in Israel
    3) if a MBP was purchased outside of Israel the 3-year AppleCare plan would not be valid in Israel
    4) if a MBP was purchased outside of Israel the 3-year AppleCare plan may be valid Israel
    I am basically trying to string together some pieces of information, and, a stated don't have the whole picture.
    My research sources include:
    1) Trying to Fix the World: Apple and Israel (http://howtofixtheworld1.blogspot.com/2008/06/apple-and-israel.html). Granted, this was posted in 2008 (updated in 2009), but it seems to set the basis for Apple repairs / warranty issues in Israel.
    2) iDigital website (http://www.idigital.co.il/). I used the google translator to read this in English. There are many parts of the site that don't translate. But, was able to rummage around it seems like they offer the iDigital Care Protection Plan for MBPs. This seems like a substitute for the AppleCare plan, and may support the idea that AppleCare is not available there, since it seems to be picked up by this 3rd party.
    3) The Apple site for Israel, particularly, the "Why you'll love a mac" page (http://www.apple.com/il/why-mac/faq/#reliable) that states:
    Is a Mac reliable?
    When you buy a PC, you’re buying hardware from one company and an operating system and software from other companies. Not so with a Mac. Because Apple builds both the computer and the software that comes with it, they’re literally made for each other. This means that a Mac rarely freezes or crashes. Occasionally an application might quit, but it won’t affect the rest of your system. And Mac OS X resists most viruses, so you can do anything — without worrying about losing everything.
    No, the above passage does not guarantee or warrant anything, but it does suggest that a MPB is "reliable". Then, given that it may be the case that AppleCare may not have been a viable option for you, I would press that as a polite argument as why it might seem appropriate for Apple to repair you MBP, just 20 days out of the year warranty.
    As "GoTVols" mentioned:
    Hurry! And if you talk to a person that isn't helping ask to talk to their supervisor.

  • Ipad trying to set up iSOS 8 and cant get past connect to itunes. Each time itunes gets to end of sync it says 'can't sync as not set up' yet that is what I'm trying to do!

    Hi,
    Trying to set up the ipad (a few years old) after updating to iSOS 8 and we are stuck at the set up stage. It seems to be stuck at the connect to itunes page. When we connect to itunes it will start sync...then gets the end and says it can't sync as its not set up...but that is what i'm trying to do!! Help!

    Which version of firefox are you using? Please update to the latest version if you have not already.
    Also are you putting capital letters into the email field? Try using all lower case.

  • I just updatmmed to iso 7 and now I can't get my iMessages or FaceTime. It keeps giving me a network error message

    I just updated to iso 7 and now I can't get my iMessages or FaceTime. It keeps giving my a network error

    generally this is caused by having a page layout for full page photo with a single full page photo in front of it -
    This FAQ describes how to find and fix it
    LN

  • Can you use and iso version of windows 7 64 bit to install windows through bootcamp?

         I saw windows 7 64 bit online cheap and it was and iso. If I put it on a disc, could I use it to install windows through bootcamp?

    You can use the iso direct from Bootcamp assistant and put it on a USB if your Mac has the ability to boot from a USB flash drive.
    If your Mac has a built in cd drive you will need to burn the iso to disc (as an image) and use that to boot from.

  • Firefox will not access the internet. I have used Firefox for years and the past week I have not been able to get on the internet??? What is the problem. My interent works as I get email and can iuse Internet Explorer to access.

    Firefox will not access the internet. I have used Firefox for years and the past week I have not been able to get on the internet??? What is the problem. My interent works as I get email and can iuse Internet Explorer to access

    Which version of Firefox are you using?
    See
    * https://support.mozilla.com/en-US/kb/Firefox%20cannot%20load%20websites%20but%20other%20programs%20can

  • Upgrading to iso 5 and receiving error message "the network connection timed out" and won't complete the update.  How do I fix to complete the upgrade?

    Upgrading to iso 5 and received an error message "the network connection timed out" and fails to complete the upgrade.  How do I complete the upgrade?

    Try a manual install, as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I've had a Samsung network extender for over a year and it's been great.  About a week ago, my iPhone 5 stopped connecting to it.  I've never had problems with this.  All the lights on the extender are blue, so it seems it's working fine.  Any suggestions

    I've had a Samsung network extender for over a year and it's been great.  About a week ago, my iPhone 5 stopped connecting to it.  I've never had problems with this.  All the lights on the extender are blue, so it seems it's working fine.  Any suggestions?

    Oh no! Lets ensure that you are connected. Have you tried to reset the Network Extender? Are other devices able to connect to the Extender? Is your Internet service up and running? 
    Share details so that we can help!
    Thank you, 
    LenaA_VZW
    Follow us on Twitter @VZWSupport

  • Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane and it w

    Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane from ebay, and it wouldn't connect to the internet. I was told by Verizon that the software had been changed.  So I ordered a NEW in Box Octane and I am having trouble with that too. Bing won't work, nothing will work that will enable me to download Verizon Opera mini that still works on my old phone. I have a smart phone with another number but I LOVE the Octane for daily use. Why will my old Octane work but I can't get a NEW one to.  Verizon guys are stumped too:( Please help!!  Thanks!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    That happened to me for a short period of time after I updated. It didn't do it with all apps, but it did it with a few here and there. Try a few basic standard troubleshooting steps. Close all apps and reset the iPad.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You can also try resetting all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.
    Hopefully it will be something simple, but don't rule out restoring the iOS software, if nothing else works, but start with this easy stuff first.

  • We have been loyal Verizon customers for about six years and need someone to investigate the amount of stress we have been put through by them in the last two or three weeks!HELP!Who do we go to?

    We have been loyal Verizon customers for about six years and need someone to investigate the amount of stress we have been put through by them in the last two or three weeks!HELP!Who do we go to?

    What problem are you having with your service or device? (Removed)
    Message edited as required by the Verizon Wireless Terms of Service
    Message was edited by: Admin Moderator

  • Why when someone rings me on my number it also comes up on my dads phone we are both on isos 8 and he has the iphone 5 and i have the 5s (if that helps)

    please help me! Why when someone rings me on my number it also comes up on my dads phone we are both on isos 8 and he has the iphone 5 and i have the 5s (if that helps)

    That is a new feature described in Connect your iPhone, iPad, and iPod touch using Continuity
    You can turn it off:
    Turn off iPhone cellular calls
    To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls.

Maybe you are looking for

  • MBP via HDMI to 24" monitor only runs the monitor not MBP display??

    I own a 2008 Macbook Pro 15" from 08. Have used monitors in the past but none via HDMI. Recently got an Asus VE247H 24" monitor. Connectd via DVI or VGA it works with a terrible screen resolution but i can still use my MBP pro display as a second mon

  • Vendor payment ( f-53)

    Hi, I am paying the vendors in F-53, and i am getting this error. Acct determination not defined for trans. SKE   in chart of accts 1000 Message no. F5113 Diagnosis An automatic posting cannot be created because the account determination for transact

  • Sharing complex substitution variable values between ASO and BSO databases

    We have ASO and BSO Essbase database member names with spaces in, and need to store some of these member names in substitution variables. However, this has to be done differently for ASO and BSO, due to calc script syntax requiring double quotes and

  • Palm Centro Sync Error

    Hi Everyone, I recently upgraded to the Palm Centro and I love it, the only thing is I've been getting the same error message since the first time I synced with my laptop.  I've looked through the first 16 pages of this forum hoping to find some info

  • How to use ZSLFN transaction type

    Dear Experts, We are using standard service desk functionality and we have two transaction types named SLFN & ZLFN.We have a BW & ECC system connected to our solution manager.My requirement is that the BW system should use SLFN transaction type and E