Need to convert  Date from calendar to String in the format dd-mom-yyyy

Need to convert Date from calendar to String in the format dd-mom-yyyy+..
This is absolutely necessary... any help plz..
Rgds
Arwinder

Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Arwinder wrote:
This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
----------------------------------------------------------------

Similar Messages

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • Convert data from internal table to XML file.

    Hi All,
    I am selecting data from database into one internal table.
    Now I want to convert data from internal table to xml file format and save in to my desktop. Please suggest me how I can achieve my requirement.
    Kindly reply me ASAP.

    Use this FM. SAP_CONVERT_TO_XML_FORMAT
    Check this link too -
    Re: Data Export in XML format
    XML files from ABAP programs

  • Retrieve data from other context node within the same context

    Hi Experts,
    I want to redefine method BUILD_TABLE for a table context node and I need to access data from another context node within the same context. I have looked through the methods of class CL_BSP_WD_CONTEXT_NODE_TV but could not find a mean of retrieving the other context nodes.
    Any ideas?
    Thanks a lot. Your help is appreciated.
    Cheers,
    Jens

    Hi Jens,
    Check this [wiki|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=201066680] it should be helpful.
    Regards,
    Shobhit

  • I need to pass data from an Access database to Teststand by using the built in Data step types(open data

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
    When I tried the same thing on another cmputer the same thing
    happend
    appreiciate u"r help

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
    Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
    Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
    "SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
    Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
    and you are running. Has anything else changed aside from the file you are editing?
    Regards,
    -Elaine R.
    National Instruments
    http://www.ni.com/ask

  • I have an old Mac Tower.  I need to move data from the unit to an external hard drive. What kind of hard drive do I purchase.  There is not a lot of data to be transferred.

    I have an old Mac Tower.  I need to move data from the unit to an external hard drive.  What kind of of hard drive must I purchase so that it works with the Tower?  There is not a lot to transfer.

    MG,
    What we might need to do is to change the question.  What computer do you plan to use the data on in the future?  For example, if you have a newer tower, just move the hard drive to the new tower.  If you want to use the data, what about an ethernet LAN to get the data over?  If you want to archive the data, how do you store the second drive?  What are your plans for the first drive?  If the new software will not recognize the old file type, the data must be exported.  Just getting files to another hard drive will not finish your journey.
    As Allan said, knowing the exact model and year of your tower is important.  My suggestion is to find a user group near you.  Please post back with more information, including the name of a large city near you.
    For example, our user group just experimented with a 1983 Apple IIc that predates the Mac.  It started right up, read files from 1984  and saved them from a 5.25" floppy to a 3.5" floppy.  That 3.5 floppy will go into a platinum G3 which will read PRODOS files using Apple File Exchange.  That G3, with a USB card, will allow saving the files to a USB flash drive.  But, somewhere along the way, some software has to read the file and convert it to data that is useable by current software.
    Ji~m

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • Create a function that convert date Gregorian calendar to Hijri calendar

    hey guys, i had an assesment i need to finish as my test for flash developer vacancy...
    i need to create a function that convert date Gregorian calendar to Hijri calendar in flash
    is that possible??
    i've search through google, but still doesnt find anything useful yet..
    kinda need ur help plz.....

    http://www.codeproject.com/KB/datetime/hijrigregorianclass.aspx

  • Retriving data from Calendar Server

    Hi All,
    I am trying to retrieve data from Sun java Calendar . I know we can do that using WCAP commands. But i need to write a code in C to retrieve the data. i could not find a CSAPI to retrieve the data. Then i learnt that CSAPI's are used to modify and enhance the server functionality.Does that mean we cannot retrieve data like events and todos form the calendar using CSAPI's. If yes Is there any other way to retrieve data from calendar server other than WCAP ?
    Thanks and Regards,
    Eklavya

    Hi,
    lmeenakshy wrote:
    Is there any way of retrieving the data from the calendar server using the HTTP methods.Is GET method an appropriate one to use on the calendar server.GET IS the method. You can see an example here:
    http://en.wikipedia.org/wiki/Web_Calendar_Access_Protocol
    Is there possibility of typing the HTTP request on the URL tab and getting information from the server?Using a web-browser will not get the desired results due to the calendar server port detecting that a web-browser is in use and not responding in the same fashion (providing a calendar express interface instead).
    You can use something like the perl LWP::UserAgent module to send through the necessary commands.
    Could you please tell me the sequence of steps to be followed to for me to use HTTP methods to get the data from the calendar server?(i do not want to use the WCAP commands).I suggest you do some more research. Saying you don't want to use WCAP commands but want to use HTTP methods are contradictory statements.
    Regards,
    Shane.

  • Need to convert a long into a string, please

    hi there
    i need to convert a long into a string. can i just cast it like this:
    (String)longNumber = some function that returns a long;

    Why not just use Long.toString()? If you start with a long value, you can create a Long object and get it's value as a String.

  • Get date from Calendar Promt

    Hi Experts,
    Is it possible to get date from Calendar Prompt when operator is "greater then or equal to". In this setting I can not set presentation variable for prompt, why? There is other way to get selected date?
    Thanks in advance for any suggestion
    Regards,
    Esk

    Eskarina wrote:
    Hi Experts,
    Is it possible to get date from Calendar Prompt when operator is "greater then or equal to". In this setting I can not set presentation variable for prompt, why? There is other way to get selected date?
    Thanks in advance for any suggestion
    Regards,
    EskThe reason the Set Variable piece disappears is because a presentation variable cannot contain multiple values. If you want to perform a calculation on a date to filter your report, do this:
    1) Keep the Operator as "is equal to/is in."
    2) Now set your PV to what you want.
    3) In your report, build a CASE statement or use the TIMESTAMPADD function to make whatever calculation you want.
    Example: Let's suppose you wanted to filter your report for all Sales Dates "greater than or equal to" the prompt selection. You would set the date prompt to "equal" a date a user selects and then save it to your Presentation Variable, say pv_SalesDate.
    Now in your report on your Sales Date column, put a filter like this:
    tablename."Sales Date" >= '@{pv_SalesDate}'
    This will achieve what you are looking for.

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • Need to read data from a text file

    I need to read data from a text file and create my own hash table out of it. I'm not allowed to use the built in Java class, so how would I go implementing my own reading method and hash table class?

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need to POST data from a desktop client to a server.

    Hello all, it's been awhile since I've posted here, so I hope everyone has been doing well.
    I have cross posted this here java - Need to POST data from a client application to my server - Stack Overflow but no answers, and since SO has been extremely slow for the questions I've been asking I am posting here.
    Here is the post:
    I know the title is probably a common question, but I am a bit confused on everything I'm trying to do, so I am trying to piece it together, and figured a common title would be better than a confusing one.
    I am basically developing a web application and one part of that is a file uploader. I am using Apache Commons File Upload via the Streaming API, and that all works fine, except I need to access the file I'm uploading, because that contains data to additional files to upload.  I.e., Read File A, get paths to images, upload images with File A to server and save on server.  The API can be found here http://commons.apache.org/proper/commons-fileupload/streaming.html
    I was told there is a security risk via the web and would be impossible via a browser, since the user needs to select all files to upload, i cannot tell the browser to upload additional files, so I am left with a client side option.
    I am confused if there is a special library I need, or as I have been seeing threads that talk about using the built in UrlConnection Class or http://hc.apache.org/
    I basically need to be able to read the file, which technically gives me a path to a Database on the user's system which I then read to get the additional images.  After I get all of that I then  need to post the data as a multipart form as that is what the FileUpload requires.
    form method="POST" enctype="multipart/form-data" action="fup.cgi">
      File to upload: <input type="file" name="upfile"><br/>
      Notes about the file: <input type="text" name="note"><br/>
      <br/>
      <input type="submit" value="Press"> to upload the file!
    </form>
    This is the example found in the Overview section of the Fileupload which can be accessed from the link above.
    There wouldn't be an issue if the users uploaded all of the data themselves, but since I have to do some of it automatically it causes some "concerns/issues."
    Basically these files are created and packaged from another application, so the images, and the db will always be in the same place, and that file that they are uploading is a file the other program creates, so everything will always be known, I just need to upload it, and then POST it as enctype="multipart/form-data" So that my servlet can read it and save it on my server.
    So I would appreciate it if anyone had any suggestions on where to begin my journey with this.  I have heard of a few applications like curl and wget that are used for this, but those seem to be more C based.  As mentioned earlier it seeems the httpcomponets from apache might work well, but I want to make sure.
    I appreciate all the help, thank you for your time all.

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to convert date from "yyyymmdd" to "MM/DD/YYYY" format

    1. I have one BLDAT field in my internal table.
       its getting updated from input file.
    2. The value in the input file is like yyyymmdd.
       So the internal table field is filled like this
       "YYYYMMDD".
    3. After this,I have to compare this internal table  
       field with BSAD table.
    4. The BLDAT field in BSAD table is in the format of 
       "MM/DD/YYYY".
    5. the BLDAT field is having diff format in internal  table and BSAD table.So I am unable to check this value.
    How to convert it as like the BSAD table format."MM/DD/YYYY" format.
    Thanks in advance!!

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 09.01.2002
      write sy-datum to gd_date mm/dd/yyyy.
    OR u can
    CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
    into gd_date seperated by '/' .
    Hope this helps.
    Kindly reward points and close the thread for the
    answer which helped u OR get back with queries.

Maybe you are looking for

  • What is the policy EXACTLY since Ive been told 2 seperate things?

    I got a BB Bold 9650 in Nov of last year. Since then, I have had SEVEN refurbs. Each one with different problems. My first refurb was 6 weeks after I got my NEW device. Ive had a myriad of problems, each phone with a different issue, although some ha

  • Not able to connect with nokia music store in lumi...

    Getting frustration to connect to Nokia music store in my Lumia 920.. Basically this device brought at singapoor and now am using @ India...i doesn't know the reason.. While connecting to store, itz showing unable to connect and contact Nokia service

  • How to Setup Epson R300 to Mac Pro

    I use a mid - 2012 Mac Pro; run Mavericks OS X 10.9.3.  I have an Epson R300 that is incompatible with 10.9.3; but according to Epson I may be able to setup my R300 to my Mac Pro buy one of three ways: 1. USB:  Connect your product to your Mac using

  • My ipod has been stolen

    I left my ipod touch in the hotel bar where I was during my hollidays in Tunisia, and when i came back a few minutes later, it had disapeared. What do I have to do to declare it stolen? Do you think I could find it back, cause I didnt download the ap

  • Which Windows XP Pro version should I install, SP2 or SP3 ?

    I just purchased an iMac 21. I need to install Windows XP Pro. Which version of XP Pro should I install ? SP2 or SP3 ?