Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2013
    Posts
    5
    Rep Power
    0

    Thumbs down How to display current date and time using system.out?

    Guys please reply. I need it badly

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: How to display current date and time using system.out?

    You have some reading to do: read the API for the Calendar class and read about the format String used by the printf( ... ) method, implemented by the System.out class.

    kind regards,

    Jos

    ps. I changed your topic title because the forum software choked on it (don't ask why, it can't handle the word 'print' in the title)
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 5
    Last Post: 02-16-2012, 09:26 AM
  2. Replies: 1
    Last Post: 08-16-2010, 10:49 AM
  3. How to display date & time on GUI?
    By BluXit in forum New To Java
    Replies: 5
    Last Post: 05-26-2010, 11:33 AM
  4. Date n Time Display problem
    By kapilverma32 in forum Advanced Java
    Replies: 6
    Last Post: 02-10-2009, 01:53 PM
  5. how to get the current date and time
    By valery in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 06:05 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
  •