Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2008

    How give time from variable in DateField?

    Dear friends,
    I have a small problem. I am trying to print Time in Datefield in J2ME. I am able to print system Time using following code, But i want to print Time from variable.
    my code:
    private Date currentTime;
    private DateField dfTime ;

    currentTime = new Date();
    dfTime = new DateField("Fajar : ", DateField.TIME,);
    fmMain.append(dfTime );

    please help me as i don't wana print current time, i wana give from variable. how to do. I m beginer in J2ME

  2. #2
    Regular Contributor
    Join Date
    Apr 2007

    Re: How give time from variable in DateField?


    You can use another constructor of Date(long date) and setInputMode(int mode) method of DateField class.


Similar Threads

  1. CPU time and time execution of a function
    By olfasupcom in forum Symbian
    Replies: 5
    Last Post: 2007-06-12, 14:12
  2. Replies: 1
    Last Post: 2007-04-20, 14:08
  3. Replies: 1
    Last Post: 2006-11-15, 07:03
  4. Bizarre calendar/time zone change handling in Nokia 9500
    By noetus in forum General Development Questions
    Replies: 0
    Last Post: 2005-09-19, 19:27
  5. DateField won't show time
    By mehli2002 in forum Mobile Java General
    Replies: 0
    Last Post: 2005-05-05, 14:46

Posting Permissions

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