Results 1 to 2 of 2
  1. #1
    the swan is offline Member
    Join Date
    Mar 2009
    Posts
    7
    Rep Power
    0

    Default how select date form calendar to textFeild

    hi
    i want customer choose departure date from calendar the it displayed in textfeild .

    i do this




    //use getInstance() method to get object of java Calendar class
    Calendar cal = Calendar.getInstance();

    //use getTime() method of Calendar class to get date and time
    text1.getvalue=cal.get(Calendar.DATE);

    pls inform me
    thanks

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

Similar Threads

  1. how select date form calendar to textFeild
    By the swan in forum AWT / Swing
    Replies: 2
    Last Post: 04-04-2009, 12:16 PM
  2. How to retain value in struts 2 using <s:select></s:select> tag
    By SaiPrasad@Sella in forum Web Frameworks
    Replies: 0
    Last Post: 02-09-2009, 07:23 AM
  3. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 08:32 PM
  4. java Date and Calendar
    By valoyivd in forum New To Java
    Replies: 1
    Last Post: 03-30-2008, 06:49 PM
  5. Calendar.DATE
    By mew in forum New To Java
    Replies: 1
    Last Post: 01-04-2008, 07:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •