Thread: Displaying time in a Java format.

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    It surprising how many people don't know this.
    Gj none the less
    Don't worry, Be happy.
     

  2. #12  
    Registered Member bloodychef's Avatar
    Join Date
    Dec 2007
    Posts
    207
    Thanks given
    0
    Thanks received
    0
    Rep Power
    27
    Looks nice, but I get this:

    Code:
    client.java:31: cannot find symbol
    symbol  : constructor Date()
    location: class java.sql.Date
    String date = sdf.format(new Date());
                             ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Press any key to continue . . .
     

  3. #13  
    Fasga
    Guest
    Quote Originally Posted by MikeScott View Post
    [b]
    Step 1. Make sure you have the following at the top of your Java document.
    Code:
    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.text.*;
    import java.security.*;
    wtfrudoinman
     

  4. #14  
    Software
    Guest
    NIce one Gl with this mike rep++!
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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