What is the Method to get record from DB as Date fornat??

Halo, i want to know what is the method to get the data from database which is store it in date format.
Previously, i am using the getDate() to get the data together with the while (rs.next() ) method after using the "select" statement to get the data from data base.
Here is the example when i retrieve record from database:
java.util.Date date1 = new java.util.Date();
String getRecord = "SELECT * FROM employee "
ResultSet rs = db. execSQL(getRecord);
while(rs.next() ){
String name = rs.getString("name");
date1 = rs.getDate("date");
}notes: method getDate() had deprecated since JDK version 1.1.
So, i need to know what is the method to get the date record??
Thank you.....

Halo, ...Yeah, Halo! Love that game...
Um, use getDate(). ResultSet.getDate() is not deprecated. If you think so, then you better go reread the API docs, cuz you're reading the wrong ones.

Similar Messages

  • What are the methods called while navigating from one applet to another one

    Hi All,
    Could any one brief me about "When you navigate from one applet to another what are the methods called ?".
    Thanks in advance.
    Best Regards,
    N.Madhusudhanan.

    http://forum.java.sun.com/thread.jsp?forum=421&thread=426771&tstart=0&trange=100

  • How to check at what time the extractor has picked records from r3 tables

    Hi experts ,
    If we want to know exactly at what time the Extractor has picked up the records from r/3 tables .
    or if we want to know the time stamp of extractor picking the records from r3 tables after r3 entries
    Regards ,
    Subash Balakrishnan

    Hi,
    The following are few function modules which will give you the information you need based upon the area you are working in.
    SD Billing: LOG_CONTENT_BILLING
       Delivery: LOG_CONTENT_DELIVERY
    Purchasing: LOG_CONTENT_PURCHASING etc...
    See if the above FMs help you in any way...

  • What is the fastest way to record and write image data?

    Hello,
    I am new to labview and am using the IMAQ software package to record and write data from a CCD camera to the hard drive. The end goal is a program that records and saves as much data as possible as quickly as possible, for experiments lasting on the scale of days. I have been experimenting with the snap, grab, and sequence methods of recording. To save the image data I was told by NI customer support that TDMS streaming would be the fastest method. I have also been experimenting with the TDMS VIs, however I have found the IMAQ Write File 2 VI to be faster in practice. Am I doing something wrong with the TDMS file structure? Is there a more efficient way to convert IMAQ image data to a dataform that can be written as TDMS? I am posting two of my programs to provide a clearer example of what I am trying to do. The first takes a snap of the image and appends it to a TDMS file. The second is the fastest I have found so far and uses Grab to record the images and the IMAQ Write File VI to save them. 
    Thanks
    Attachments:
    Camera Capture (Snap) and stream TDMS.vi ‏24 KB
    Camera Capture (Grab) and write image.vi ‏24 KB

    Hi
    For me it is no surprise that the second VI is faster then the first one, the reason is you can not compare this two VI with each other.
    In the first VI you work with TDMS files, in the second with png files. That would be much faster, because TDMS files need a lot of diskspace.
    Second point, why do you open, write and close for eacht iteration of the for loop a TDMS file in your first VI? That need really a lot of resources, so it coudn´t be fats as well.
    Save your converted pictures in one array, an after the acquisition you can save it in one TDMS file. When you need for each picture a TDMS file you have to know that this need some time to do this.
    So now for the architecture of your first VI, please look to the LL Sequence.vifrom the examples (C:\Program Files\National Instruments\LabVIEW 8.6\examples\IMAQ\IMAQ Low Level.llb\LL Sequence.vi), there you can see how an acquisition of a number of images have been to do.
    When you like it really fast, you make a producer/consumer architecture (see examples in LabVIEW for that).
    So in the first whileloop you acquire the images, write into a queue and in the second, parallel whileloop you read the queue and save the images. (see attachment)
    Hope that helps
    Kind regards
    Beat
    NI Germany
    Attachments:
    ProducerConsumerData.vi ‏10 KB
    ProducerConsumerData_LV8.5.vi ‏12 KB

  • TS1398 what is the trick with getting connected to airport WiFi?  It takes forever to go from the settings portion then to the browser to "accept" terms.  Am I missing something to speed the process?

    what is the trick with getting connected to airport WiFi?  It takes forever to go from the settings portion then to the browser to "accept" terms.  Am I missing something to speed the process?

    OK, I figured out from the various postings on here and way too many hours overnight how to pretty much make the Yoga do what it is supposed to do. I've written up a step by step at this link that may help some of you with your problems as well
    Let me know if this helps!

  • TS3992 I am trying to do an icloud backup from my computer.  I have been unable to do a backup from a wifi as I keep getting message that backup could not be done.  What is  the secret to doing it from my computer?

    I am trying to do an iCloud backup from my computer.  I have been unable to do a backup from a wifi as I keep getting message that it cannot be completed.  What is the secret to doing this from my computer, with my iphone plugged into same?

    How are you trying to do it from your computer?  Try plugging it into your charger while connected to wifi, then either lock the screen and wait (it should backup up ever 24 hours) or go to Settings>iCloud>Storage & Backup and tap Back Up Now.

  • Had my iPod stolen from my car today...what's the chance of getting it back please?

    Sick as a pig....what's the chance of getting it back guys?

    Slim to none
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have to iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                              
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How to look at the delta (daily load) records from R/3 system to BW master

    How to look at the delta (daily load) records from R/3 system to BW master on a particular date, let us say,
    today delta happened from R/3 to 0vendor  in BW , how to view what are all the records came to BW - 0vendor (from R/3) in today's delta.
    Regards
    Siva

    Hi,
    youi can see the data in the PSA.
    Just go to the request in monitor tab and in the monitor and in the left top click on the PSA button.
    In the nest window give the selection on the number of records you want to see from that if you want to see all the records give the number which get laoded in that request.
    this will show you the data loaded in that request.
    Hope it clears
    thanks

  • NEED HELP!! creating a method to search records from a data.dat file

    i am having a lot of trouble trying to create a method for searching records from a data.dat file as a contacts application i am using (for) and (if) together and getting the same error messages saying a ")" is needed when it doesn't and illegal start of expression can anyone help! on letting me know how you create search methods! thanks

    public static void search_records()
              System.out.println("Please Enter a Surname (* for all):");
              user_surname = data_input.next();
              System.out.println("Please Enter a firstname (* for all):");
              user_firstname = data_input.next();
              for (int i = 0; i < number_of_records; i++)
                   if(user_surname.compareTo(lastName) || user_surname.compareTo(*));
                             if(user_firstname.compareTo(firstName[i]) || user_firstname.compareTo(*));
                                  system.out.print("Result:",number_of_records);

  • What is the proper way to record line numbers in Master/Detail records?

    Guys and Gals,
    Been thinking about this for awhile, but thought it best to ask the people who really know what they are doing.
    What is the proper way to record & show line numbers in a Master / Detail record set?
    For example, take Master/Detail relationship Orders and OrderItems. Orders has a column Document_Number and OrderItems has Document_Number, Line_Number. Line_Number should contain the row number 1,2,3,4 ... etc. for each row in a document.
    Should I ...
    <ol><li>Add a sequence and a trigger in the database? The FusionOrderDemo does this, but then the sequence never "resets" and I've got row numbers that keep incrementing. So one document has rows 4,5,6 and the next document has 7,8,9 when they should both have 1,2,3.</li>
    <li>Programmatically take care of the row numbers? This seems like I'm asking for trouble. Anytime an insert or delete operation gets done, I'll have to iterate through rows and re-assign row numbers.</li>
    <li>Is there a way to assign row numbers in a table iterator (or data collection?) to an entity?</li></ol>
    Any suggestions would be appreciated. It's looking like #2 is my only option, but if anyone knows different I'd love the input.
    Will

    Thank you both guys.
    As John said, I believe I'm looking for a gap-free sequence per master record.
    The line number of the OrderItems table is the second half of the primary key. The first half of the primary key (DocumentNumber) is the foreign key to the Orders table.
    Think of it like line items on an order or invoice. For example, if you were talking to someone on the phone concerning an invoice, you might say, "The pricing for line item #3 is incorrect." In this case, it's good to have a common reference. Or imagine a Microsoft Excel spreadsheet with no row numbers displayed! You'd never get anywhere if you had to explain something over the phone.
    If this is tricky to perform, I take it using a sequence and trigger such as the Fusion Order Demo is the best way to approach the challenge for simplicity's sake?
    Will

  • My ipod nano 6th gen fell out of my pockey and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed

    My ipod nano 6th gen fell out of my pocket and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed? It is pretty frustrating, it fell from about 3 feet out of my pocket and now looks like it was beaten by a hammer.

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • I have replied to you three times now without reply. I DID NOT authorise a payment of £9.99 for NowTV. What is the solution to getting my money refunded. I think you assume I will go away after being Ignored. No I will not go away. I find now that you hav

    I have replied to you three times now without reply. I DID NOT authorise a payment of £9.99 for NowTV. What is the solution to getting my money refunded. I think you assume I will go away after being Ignored. No I will not go away. I find now that you have DISABLED MY APPLE ID. Is this a punishment you use to anyone who takes up a stand against charges being made unauthorised on their account?. Please tell me why you have disabled my account. When will my account be restored? If not when will you refund ALL my purchases made to APPLE/ITUNES? I can then move on to another brand and hopefully better customer service. After reading articles regarding APPLE ID DISABLED it appears common practice from your company to DISABLE anyone's account if they question unknown charges. Please reply with your intentions regarding  the unauthorised payment and the DISABLING of my account.
    David Forrester.
    Sent from my iPad
    On 18 Mar 2014, at 09:20, iTunes Store <[email protected]> wrote:
    Follow-Up: 319042795
    Hello again,
    I wanted to send a quick note to see if you are still experiencing any difficulties with the iTunes Store. Resolving your issue is important to me, so please don't hesitate to reply if you need any further assistance.
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Dear David,
    Welcome to iTunes Store Customer support.
    I understand that you have been charged an additional 9.99 GBP for a purchase that not authorized. I know how eager you are to know more about this purchase and I am happy to look into this for you.
    David, the purchase worth 9.99 GBP was for a day pass from "NOW TV for Apple TV." To review your iTunes Store account's purchase history, please follow the steps in this article:
    iTunes Store &amp; Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/HT2727
    Please reply to this email and let me know if this purchase was unauthorized.
    Thank you for being an iTunes Store customer. Have a great day!
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Lang_Country: en_gb
    User Storefront: UK
    Concern Type: Problem Not Listed
    Web Order #:
    Content Title: NOW TV Day Pass
    Provider Name: BSkyB
    Track IDs: []
    Purchase Date : 2014-03-16 12:33:48 Etc/GMT
    Purchase Device : Apple TV
    Comments : I am being charged for what is listed plus another _9.99 for Apple TV pass. Did not authorise this _9.99 charge and not sure what it is exactly.
    <Personal Information Edited by Host>

    This is a user-supported board. You are not addressing Apple here. Nor is it a good idea to post your private information to a public forum. You should edit your post immediately.
    Unfortunately no one here can access your support history. You must respond to the emails directly.

  • What is the table to get the all planned orders related to a sale order

    Hi,
    May i know what is the table to get the all planned orders related to a sale order. My scenario is make to order scenario. we can get my out put final product by completing the nearly 916 planned orders.(Like major assemble,sub assemble). From this scenario i want the total orders related to a sale order. ( The planned orders from sale order to sale order will change. i.e 1 sale order will have 916 planned orders and one sale orders will generate 920 like that will chage when running mrp.). Now i want to pick the total planned orders for a sale order in a report. please guide me.
    Regards,
    Mastan.

    Hi,
    Use the table PLAF... in this table pass the sale order no in the filed KDAUF and then execute...issue here is once the planned orders are converted production orders, these planned orders are deleted from the system....so you will not able to see them.....
    Thanks
    Kumar

  • What is the method used for upload of  data

    Hi All,
    What is the method used for upload of  Data from excel spread sheets to SAP HR.
    it is Bulk Data from many countries.LSMW or BDC Session Method?
    what are country specific infotypes used for PA and OM.
    can u plz give the list of country specific infotypes used for PA n OM Module.
    Thanks
    Archana

    Hi Archana,
    To Upload bulk data I think BDC is the best and effecient way.
    Regarding Infotypes we dont have any country specific Infotypes in OM & PA. In Payroll we do have according to country wise.
    I hope you had understood the point
    Regards
    Pavani
    Remainder: Points to be given on answers

  • What is the best way to print from an iPad?

    I have the Printer Pro app, and it seems to do a good job locating my wireless printer, but it gets complicated to print webpages or pages documents. What is the best way to print from an iPad 2?

    If you have a compatible printer, use AirPrint http://www.apple.com/ipad/features/airprint.html and http://support.apple.com/kb/HT4356
    If not, you would need to purchase software, such as:
    http://itunes.apple.com/us/app/printcentral-for-ipad/id366020849?mt=8
    http://www.ecamm.com/mac/printopia/
    http://www.collobos.com/

Maybe you are looking for