Differentiating between 21st 20th century years

I am wirting an applicaion for a mysql database where in I have to populate some very old data in to the database.For that I need to convert dates from the format "MM/dd/yy" into the format "yyyy-mm-dd"( this format being used in mysql).Although I have written the following code to do the conversion, I still have a problem.HOw do I make it recognize centuries i.e 1906 or 2006?
public class Datedemo extends Object {
String convertDate(String oldate){
     String strdate=null;
     try{     
     SimpleDateFormat sdfOutput = new SimpleDateFormat ( "yyyy-MM-dd" );
     DateFormat df=DateFormat.getDateInstance(DateFormat.SHORT,Locale.US);
     Date myDate =df.parse(oldate);
     strdate=sdfOutput.format(myDate);
     }catch (ParseException ae){}
     return strdate;
     public static void main(String args[])
          String newdate;
          Datedemo datedemo=new Datedemo ();
     newdate=datedemo.convertDate("03/23/06");
     System.out.print (newdate);
How does java recognize whether a year is in this century or in the last e.g how do I a make a date like 03/23/06 (06 meaning 1906) to 1906-03-23.Java converts it to 2006-03-23.Although for some dates like 03/23/31 java corectly converts it to 1931-03-23 it doesnt do that for some earlier years.
How do I get around this?Thanks in advance for any help regarding this.
RS

See this API link on the SimpleDateFormat class:
http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
Read the Code Sample: section, 2nd paragraph on how this class handles 2 digit years

Similar Messages

  • Get date between 1st of current year and 31st Dec of current year

    Hello:
    I have a query where there is a check on date that has to be between 1 jan curr year and 31 dec curr year. How can I have that since the year component will be changing from year to year?

    use the year component of sysdate?
    ME_XE?select to_char(sysdate, 'YYYY') from dual;
    TO_CHAR(SYSD
    2007
    1 row selected.
    Elapsed: 00:00:00.12
    ME_XE?select to_date('01-jan-'||to_char(sysdate, 'YYYY'), 'DD-MON-YYYY') from dual;
    TO_DATE('01-JAN-'||TO_CHAR
    01-JAN-2007 12 00:00
    1 row selected.
    Elapsed: 00:00:00.18

  • Differentiating between same exception thrown from 2 different methods

    Suppose I have a class CodeDAO which has 2 methods who both throw SQLException
    public int getLocationCode(String locationName) throws SQLException;
    public int getDepartmentCode(String departmentName) throws SQLException;Now I have a business method in which I have to use both of the above DAO methods.
    public int process() {
       try {
          CodeDAO codeDAO = new CodeDAO();
          int locationCode = codeDAO.getLocationCode("NJ");
          int departmentCode = codeDAO.getDepartmentCode("Sales");
       catch (SQLException e) {
    }If SQLException is thrown how will I know if it is thrown by the getLocationCode method or getDepartmentCode method?
    What are the different choices I have in differentiating between same exception thrown from different methods? And which choice do you guys prefer?
    Thanks

    srhcan wrote:
    maheshguruswamy wrote:
    srhcan wrote:
    gimbal2 wrote:
    baftos wrote:
    Put each method invokation in its own try/catch block.Or in fact not use SQLException, but exceptions that are unique.So each DAO method has its own exception?
    public int getLocationCode(String locationName) throws GetLocationCodeException;
    public int getDepartmentCode(String departmentName) throws GetDepartmentCodeException;would not that means I have to create a lot of exception classes?
    Edited by: srhcan on Aug 9, 2012 2:54 PMLet me ask you this, what do you plan to do in the catch block? Do some sort of recovery? rollback? If it is just for logging purposes, I am pretty sure the exception message will give you enough information to find out where the error was.* I would like to give user a specific message based on which method fails. So if getLocationCode("NJ") fails the message can be: Unable to find code for Location "NJ". And if getDepartmentCode("Sales") fails the message can be: Unable to find code for Department "Sales".
    * I would like to print the exception's stacktrace in the log file.
    * I may do a rollback depending on if its an INSERT/UPDATE/DELETE statement.Well, in that case why not log it in the DAO methods themselves...inside getLocationCode and getDepartmentCode. Instead of trying to do the recovery/logging in the process method, do it in the individual dao methods. The calling classes should not be responsible for logging/recovery etc. It should be done in the DAO classes themselves and the DAO method should return an appropriate message/code to the consumer tier classes indicating the status of the transaction. Just my 0.02$.

  • Detail differentiation between add query,combined query and sub query

    HI
    I would like to know the detail differentiation between add query,combined query and sub query with  universe
    correct me if I a wrong
    Add query : adding of different query from different universe and also with in same universe.
    Combined query : combining query using operators(Union,intersection,minus)with in same universe.
    Sub query :getting results from the sub query and the result serves as the data for main  query within same universe.

    Hi,
    I would advise you to check the product documentation under http://help.sap.com/
    regards
    Steph

  • IBook Shipping between Christmas and New Years?

    Anyone from Apple know whether books are being processed and shipped between Christmas and New Years?
    I am wondering if anyone has an accurate answer as to why shipping time takes longer then normal if an iBook order was put in on December 23rd (3:00am Pacific).  I made the order exspecting the shipment to arrive by atleast the 30th with express shipping.  If i had ordered on December 22nd, the site said it would arrive by December 29th, and assumed that if ordered a day later it would arrive a day later.  The message I received when purchased said it would only be delivered Jan 4-6 which is much more than anticipated.  Of course it's the holidays, but this doesn't make sense to me even with omiting the 26th as a holiday.  That, and it is the end of the holidays so I would think most books have already been made and shipped?  I am leaving overseas on the 31st and wanted to have these books to give to relatives!   I ordered them and am just hoping they come in on time.
    Anyone from Apple know whether books are being processed and shipped between Christmas and New Years?
    By the way, since the 23rd, it said the books were Preparing for Shippment.
    Thanks!
    Chris

    Apple does certainly know
    Unfortuantly you you are posting in a strictly user to user forum so no one here has any idea at all
    Anly Apple can answer - Sorry
    LN

  • Differentiating Between Dependent and Independent Data

    HI,
    How can I make a differentiation between dependent and independent data?

    HI,
    If you double click a Transfer requirement in SE10 or SE09 and then press F4 in the field category, you will find some helpful information.
    Client dependent or independent transfer requirements include client specific or cross client objects in the change requests. Workbench objects like SAPscripts are client specific, some entries in customizing are client independent.
    If you display the object list for one change request, and then for each object the object attributes, you will find the flag client specific.
    If one object in the task list has this flag on, then that transport will be client dependent.
    You can also find a list of the high class objects in SAP, here you will see the flag on/off. Use TCODE SOBJ.
    Start STMS and double click on the request itself, you will see which type of request it is (Workbench -> client independent or Customizing -> client dependent).
    I recommend you to import every request on each client without looking inside the request.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • How to give space between date mm and year in terms of bytes

    Hi Guru,
    In sapscript I want to give space in datae formate betweeen day and month , month and  year in terms of bytes.
    Example :
    if datae is 2009/08/18 then I want to move like   2009     08       18. Here the gap between the date field and month , year fields is in terms of bytes. Like 4 bytes gap between year and date, 5bbytes gap between day and month  in ECC6.0.
    Please help in this.
    Thanks,
    PJ.

    hii prakash,
                                  Use the Function Module.
    RP_FORMATING_DATE
    If you use this FM then automatically it will convert it to YYY MM DD format and then you can use as per your requirement 
    or you can do like this
    Use following code to change the date format from DD.MM.YYYY to YYYY MM DD
    DATA : DATE(10) TYPE C,
    DATE1(10) TYPE C.
    CONCATENATE DATE6(4) DATE3(2) DATE+0(2)
    INTO DATE1
    SEPARATED BY ' '.
    regards,
    Shweta
    Edited by: Shweta Joon on Aug 18, 2009 10:38 AM

  • Differentiation between In-Agreement Employees and Out of Agreement Employe

    Dear Friends,
    The scenario for the client is:-
    1) The client has 21 different employee categories.
    2) For each employee category there is a salary structure
    3) But each category employee can be either an "In-Agreement" employee or "Out of Agreement" employee.
    4) For In-Agreement employees the salary structure is fixed, but for Out-of-Agreement employees, inspite of being in same category, the salary structure is flexible. The flexibility is in terms of any amounts can be paid for same wage types assigned to same category employee as "In-agreement".
    5) Also, There are very specifc additional payments wage types which are given to either "In-Agreement" or "Out of Agreement".
    Kindly help how to handle such scenario in SAP? I had thought of keeping the basic Pay wage type amounts to be overwritten and had created 21 employee subgroups. But client is raising objections and they want to see how the employee is differentiated as regard to "In-Agreement" and "Out-Agreement".
    I am open to change in my design.
    Thanking You.
    With Best Regards,
    Sunny Singh

    Dear Friends,
    This Scenario belonging to SPanish Payroll.
    In their Legacy system;-
    They have 21 employee categories, which is they are using in their Personnel Administration Screen.
    For Payroll, they first classify employees as
    1) In-Agreement or 2) Out-of Agreement
    Then they give the value of either of 21 categories and the payroll structure is derived from that.
    Now to explain more:-
    An employee 1654 is in "In-Agreement" employee and also part of category 16 "Deliante".
    Similarly another employee 2187 is in "Out-of-Agreement" employee and is also part of category 16 "Deliante".
    Due to above assignment,
    Employee 1654 has a payroll structure and components which cannot be changed. It is fixed as per his category.
    But Employee 2187, being part of same category, gets a different payroll structure and they are modifiable.
    Employees belonging to "In-Agreement" has some other extra wage types and their Illness and Accident related Social Security payments are made differently than employees belonging to "Out-of-Agreement".
    for ex:- Employee 1654 apart from normal salary is having extra payment called Production Incentive, which is daily rate * no of days worked.
    This component will not be given to employee 2187 as he is Out of Agreement employee.
    Similarly Employee 1654 gets 90% of his salary on Illness and Accident and from second day of his illness, there is more conditions on that.
    But employee 2187 belonging to Out-of-Agreement, gets 100% of his salary on illness and Acciden from Day one.
    Also, EMployees in Personnel Administration is classfied as Permamnet, Temporary, Pre-Retired and Separated.
    Also, they are classified as MOD and MOI in Personnel Administration. MOD and MOI has no effect on Payroll structure.
    I hope i have explained well. Client wants to see on SAP screen the demarcation between In-Agreement and Out of Agreement employees and their payroll structure to come accordingly.
    Now as far as my working goes, we can play around with Payscale type and Payscale Group and Level, but that will only default the Payroll structure in IT0008, but it wont restrict for other wage types paid thru other screens. We control wage types permissibility only through Employee Subgroup groupings and PSG Groupings. So lot of confusion and I am not able to formalize the final structure.
    I hope I have been very very clear.
    Your Inputs please.
    Thanking You.
    With Best Regards,
    Sunny Singh

  • Differentiating between IO Errors

    Hi all,
    Had a little question here. Not sure how complicated it might be :)
    I have a scenario wherein I need to differentiate between errors arising out of not being able to read a file. The cases are:
    1. Network path not found
    2. File does not exist
    3. Do not have permissions to access the file
    For all the 3 cases, I get a FileNotFoundException. Is there some way to differentiate between these cases in a simple way?
    Any help would be appericiated.
    Thanks a lot,
    -Vineet

    "Programatically one should never rely on the text of an exception to discriminate between exceptions"
    I agree. Sadly, there's no other way to distinguish between FileNotFound and AccessDenied.
    There has been an open bug on this for several years. The reason for not fixing it is that it would break to much existing code. I looked at the source and there would be a lot of work to do to retrofit this to all implementations, but its a shame because the underlying OS reports all this, and then the native code simply bundles them all into one exception and returns that.
    The only solution I thought of was adding a method to FileNotFoundException which would give more detail - that would'nt break exististing code.
    If anyone knows any other way of doing this, I'd love to hear.

  • Differentiating between open and closed invoices

    Hi all
           I am using a database view of tables VBRK and VRKPA  for fetching invoice list based on the customer number. Can I use  'VBRK-RFBSK = C' to differentiate between closed  and open invoices?  If not is there any other field i can use from this particular view for the same.
    Thanks

    Hi Asim,
    Yes, you are absolutely right. This field give you the exact result like which billing dcoument is open and which is closed.
    Regards,
    MT

  • Differentiating between versions of applications with identical names

    I am in a situation where I have both Microsoft Office 2004 and Microsoft Office 2008 installed (and working OK) on my work computer (1.42GHz eMac, 2GB RAM, OS X 10.5.8). When needing to use Microsoft Excel I use either version, although Excel 2008 is noticeably slower on many tasks. This speed difference is the reason I am trying to achieve what I have described below.
    I have written a script which, after processing/editing/cleaning up a .csv file using AppleScript, saves the results to a tab-delimited text file, opens it in Excel 2004 and does some sorting. So far (after much internet-searching and experimentation), everything works according to plan, consistently and reliably.
    In the script, I have been able to differentiate between *Microsoft Excel* (in the Microsoft Office 2004 folder) and *Microsoft Excel* (in the Microsoft Office 2008 folder) and the script successfully opens the file using Excel 2004. The following lines accomplish this (I have omitted some extra code which similarly checks for Excel 2008 and does some error-prevention - what is here is the important stuff. I have tried the script with and without the omitted code and it runs the same for the purposes of this post):
    +tell application "Finder"+
    +set TargetFile to (path to desktop folder as string) & "ResultsFile.txt"+
    +if exists (application file "Microsoft Excel" of folder "Microsoft Office 2004" of folder "Applications" of startup disk) then+
    +set VersionToUse to (application file "Microsoft Excel" of folder "Microsoft Office 2004" of folder "Applications" of startup disk)+
    +end if+
    +open TargetFile using VersionToUse+
    +end tell+
    No problems so far. The document is open in Excel 2004, waiting for AppleScript commands to be issued.
    (On a computer with only Office 2004 installed, the following paragraph does not apply because there is only one version of Excel - I have been able to issue commands for selection, sorting, etc. with no worries. The problem is when there are two versions of Excel on the same hard disk.)
    However, as soon as I use a tell block starting with *tell application "Microsoft Excel"*, Excel 2008 opens up. Even if Excel 2004 is already open, double-clicking Excel files in Finder will open Excel 2008. I have been looking for ways of uniquely identifying the version which has opened the document so that I can issue commands within that, but to no avail. If both versions of Excel are running at the same time, System Events gives the name of both as "Microsoft Excel". In Finder, I could change the name of one from "Microsoft Excel" to "Microsoft Excel 2004" and the other to "Microsoft Excel 2008", but I am trying to avoid that if possible. I'm not sure of what unwanted side-effects could result.
    Does anyone have any ideas on how to issue commands within the running version without the other, identically-named, version activating itself? Possibly, the method I used to identify the wanted version (setting the variable VersionToUse to the pathway) is not the best way, but I am unable to figure out another way without the other version being opened instead. I would prefer to keep away from shell scripts unless there is no other way, as I am nowhere near as comfortable with shell scripts as I am with normal AppleScript. I have not yet tried setting the default application to Excel 2004 using the Get Info command in Finder (don't know if that will work consistently, as the OS seems to want to use the later version of an application if more than one is available), and I'm trying to make the script portable so that it could work on another computer which has both versions of Office installed without changing any of that computer's settings. However, if that change (so that *tell application "Microsoft Excel"* applies to Excel 2004 instead of Excel 2008) could be effected using AppleScript and then reverted to original settings once the script finished, that might be the simplest way to do it.

    Thank you both for taking time to reply. I have tried your suggestions, but unfortunately they did not bring me any closer to what I am trying to achieve.
    Taylor.henderson - yours did not work as hoped, most likely because AppleScript will only accept just the name of the application when it is being set to a variable. The full pathway, which would solve the confusion about which version of an application to use, seems to be rejected by AppleScript (maybe it is simply not expecting a pathway and does not know what to do with the extra information). The idea is great but unhappily it didn't work.
    Hiroto - when run on the Mac at work (G4 eMac, 1.42 GHz, OS X 10.5.8), your script gave the following results:
    +tell application "Microsoft Excel"+
    +path to current application+
    +«event ascrgdut»+
    +path to current application+
    +alias "MacintoshHD:Applications:Microsoft Office 2008:Microsoft Excel.app:"+
    +end tell+
    When run on my Mac at home (DP 1.25 GHz G4, OS X 10.4.11), it hung AppleScript with the only way out being to force quit. Again, the idea is good but it unhappily also didn't work.
    After a lot more experimenting with both Excel and System Events, I acknowledged that I had come to a dead end. Then I re-read my original post and decided to try what I wanted to avoid - renaming the applications in Finder, although I had to log in as root to do so. After renaming "Microsoft Excel" in the Microsoft Office 2004 folder to "Microsoft Excel 2004", I ran that to see if it still worked. No problems so far. Then I told AppleScript to get the application process names using System Events. I had expected it to return "Microsoft Excel", but to my surprise it actually returned "Microsoft Excel 2004" as the name of the application process. When likewise renaming the 2008 version its application process did actually return just as "Microsoft Excel". I'm not sure why, but as long as they are different it enables me to address/refer to each one without confusion. Possibly because, at least on my home machine Excel 2008, when right-clicked on, gives the option to show package contents. Inside the folder which opens, and then inside Contents > MacOS is the Unix executable file. Excel 2004 does not display "show package contents" (probably PPC only). I tried renaming the Excel 2008 Unix executable file from "Microsoft Excel" to "Microsoft Excel 2008", but that really confused the computer. The name of that file is probably hard-coded and the file does not get recognized if its name is different. So I left the 2008 version completely alone.
    The earlier version of my script had actually been able to open the chosen document in the desired version of Excel. The problem which I could not solve was how to prevent the other version of Excel from opening when using "tell application Microsoft Excel" in the script ("tell application Microsoft Excel" was needed before issuing any commands such as selecting, sorting, etc.). It looks like the renaming of the application and the consequent renaming of the application process did the trick. Hopefully changing the name of an application, as it appears in Finder, is not going to cause any problems. So far, it appears that nothing has gone wrong.
    Just as an afterthought, to prove to myself that the problem was solved (at least sufficiently for me to do what I wanted) I ran the following script to see if having both versions of Excel running was going to cause any problems. The two larger blocks in the middle do the same thing - switching back and forth between the two versions of Excel - but one uses System Events and the other addresses each application individually. The delays are there to give each action time to finish happening before the next one occurs.
    +tell application "Microsoft Excel 2004"+
    open
    +end tell+
    +tell application "Microsoft Excel"+
    open
    +end tell+
    +delay 6+
    +tell application "System Events"+
    +repeat with Counter1 from 1 to 5+
    +delay 1+
    +set frontmost of application process "Microsoft Excel 2004" to true+
    +delay 1+
    +set frontmost of application process "Microsoft Excel" to true+
    +end repeat+
    +end tell+
    +repeat with Counter2 from 1 to 5+
    +tell application "Microsoft Excel 2004"+
    activate
    +end tell+
    +delay 1+
    +tell application "Microsoft Excel"+
    activate
    +end tell+
    +delay 1+
    +end repeat+
    +tell application "Microsoft Excel 2004"+
    quit
    +end tell+
    +tell application "Microsoft Excel"+
    quit
    +end tell+
    Thank you both once again for taking the time and effort to contribute. Even though your suggestions did not give the results hoped for (in fact it might not even be possible to do it with AppleScript), I appreciate your efforts as I always try to learn from other people's ideas and ways of doing things.

  • Differentiation between B2B and A2A

    Hi,
    Can anybody give me a real time example between B2B and A2A in general and XI Perspective?
    Points Assured
    Regards,
    B.Anandh

    Anandha Krishnan
    Here is some more info to top up
    Think, Company A is dealing only with Legacy Systems or Java Based applications, but Company B cannot directly understand COmpany A's format. So the Integration Broker like XI will come into picture. While integrating Company A should know how feasible it can communicate with Company B.. More in technical, is thru WebServices Industry Standard Adapters(Seeburger EDI)/(SOAP)/Java Applications(JavaProxy)/.net Applications etc..
    <i>Thanks 2 Krishnamoorthy P</i>
    Also Check the following help doc
    http://help.sap.com/saphelp_nw04s/helpdata/en/15/5f934249c30c31e10000000a1550b0/frameset.htm
    regards
    krishna

  • Differentiating Between Windows XP and Windows XP Embedded with MAP Tool

    Hi All,
    I have a customer who has multiple Windows XP Embedded Thinclients.  When he runs the MAP tool they show up as Windows XP devices.  I have personally not seen this yet since he hasn't shared the MAP data yet but does anyone know if the MPA tool
    can differentiate between Windows XP desktops and Windows XP embedded Thinclients or are they all lumped together?  Does the MAP tool show for example versioning that might help differentiate?   Any help would be greatly appreciated.

    When queried by MAP, the WMI service in the Windows XPe machines are reporting back as “Microsoft Windows XP Professional” and since MAP can only report what WMI tells it, that is what shows up in the reports. This is an artifact of Windows XPe because it
    starts out as a full version of XP Pro and then each OEM can choose what parts they want to remove, if any. If the OEMs don’t modify the WMI class to show the product as XP Embedded, it will continue to show up with its original description of Windows XP Professional.
    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. Please
    VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread.

  • SQL date query problem with century/ year

    We have an oracle database with about 6 million records. There is a date field called Entered Date that ranges from 1985 to the present.
    The majority of these records were entered prior to Jan 1 2000.
    If I run a query like
    select count(*) from (tablename) where entered_date < '01-JAN-00' I get 0
    if I do
    select count(*) from (tablename) where entered_date < '31-DEC-99' I get 0
    BUT IF I DO
    select count(*) from (tablename) where entered_date < '01-JAN-00' I get 6 million records
    or
    select count(*) from TREASURY.ctrc where entrydate > '31-DEC-99' I get 6 million records
    I've tried the same queries using 4 digit years but get the same results; it thinks that 2000 is the less than 1999
    How do I get around this?
    thanks

    Hi,
    975204 wrote:
    there are 6 million records on the table
    about two thirds have a date prior to Jan 1 , 2000How do you know that? From knowledge of the application, you may know that two thirds of them are supposed to have dates prior to 2000, but if
    SELECT  COUNT (*)
    FROM      TABLE_NAME
    WHERE      ENTRYDATE < TO_DATE ( '01-JAN-2000'
                           , 'DD-MON-YYYY'
    ;returns 0, that's pretty strong proof that none of them actually do.
    When I look at the dates , they display as 31-DEC-86Another example of why using 2-digit years is such a bad idea.
    I cant actually provide dump of this clients confidential dataSeriously; you can't provide one DUMP output? You've already said that it displays as 31-DEC-86, so even if the fact that 1 entry in the 6-million row table was done on December 31, 1986 was such a big secret, it's already out, and you won't be causing any more harm by showing the DUMP results.
    I ran the query with the same format as the date ie
    SELECT COUNT(*) FROM TREASURY.CTRC WHERE ENTRYDATE < TO_DATE ( '31-DEC-99'
    , 'DD-MON-YY'
    but same results
    if the column is defined as a DATE type, does Oracle make a distinction based on how the data displays, meaning does it think that 31-DEC-86 is different than 31-DEC-1986?No, all DATE columns have the same format. A DATE may be displayed one way of the other, but it is stored as neither.
    Do I need to convert all the data to a 4 digit year? You should always display dates with a 4-digit year.
    Run an update query that says if year >= 80 and <= 99 add 19 in front of the year, else add 20 in front of the yearLet's find out exactly what the problem is, first.
    Did you see Ascheffer's message? ^1^ It was dated just a couple of minutes before your last message, so you might not have noticed it. Run it to see what the actual 4-digit years are.
    If it shows, for example, that there are a lot of entrydates in the years 2080 to 2099, and you decide that all of those really should be 100 years earlier, then use ADD_MONTHS to correct them:
    UPDATE     table_name
    SET     entrydate = ADD_MONTHS ( entrydate
                               , -100 * 12
    WHERE   entrydate >= TO_DATE ( '01-JAN-2080'
                             , 'DD-MON-YYYY'
    AND     entrydate <  TO_DATE ( '01-JAN-2100'
                             , 'DD-MON-YYYY'
    ;Edited by: Frank Kulash on Mar 15, 2013 6:09 PM
    ^1^ Obviously, you did see Ascheffer's message; I was still typing the message above when you posted another one.

  • HT204053 i have 2 different Iphone with different contact how i can differentiated between them

    I have 2 Iphone one for me and other for my wife , using Icloud in on the same PC how i can differentiated the contact in mine from hers

    Hello!
    There are a couple ways that you can process this.  You have the option to download past purchases for free via the purchased section of the iTunes Store.  You also can enable Home Sharing in iTunes.  Home Sharing will allow you to transfer the media that you are missing.  Here are the articles that walk you through these steps.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    iTunes: Setting up Home Sharing on your computer
    http://support.apple.com/kb/ht4620
    Cheers,
    Jason H. 

Maybe you are looking for

  • One reason why commandLink doesn't work in dataTable

    Ok, so I think I've got an explanation why commandLink doesn't work in dataTable when the model bean is request scoped. Maybe somebody can tell me if I'm wrong. I have a model bean that generates table rows based on some input criteria (request param

  • I am trying to reinstall OS X Mavericks but the disc is locked.

    I Am trying to reinstall os x mavericks after reading pressing alt on start up is the right thing to do. I have followed the instructions upto the point where it has asked me to select the disc. The disc is locked and only has 117mb left. Can someone

  • Nokia Wireless Charging Shell for Lumia 820

    Can someone explain this, just got a 820, it didnt come with a wifi charger, so now looking to buy one soon. The manual says it supports it, yet im now reading I need to buy a "Shell" When i removed the existing shell to put in the sim and microsd, i

  • Script to to update users attribute based on EmployeeID Value from CSV file

    Hello,  i am trying to build script that read the data from CSV file, the only data exist on this file is the EmployeeID. so i need to read the EmployeeID and for each employeeID exist in this sheet in need to disable that user and  change the Descri

  • 100% resource allocation

    Hi All,      At present in SAP HRMS, When we allocate an employee for more than 100% allocation to one or more than one project, system gives us a warning message, thus we can allocate an employee for more than 100%.      But when we allocate a perso