• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to generate Sysdate using Java?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


You can format the date as per your requirement. Here I have tried to print the milliseconds also.....Keep Rocking!!

[edit]Add code tags. CR[/edit]
[ September 05, 2008: Message edited by: Campbell Ritchie ]
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch
Please find the code button; I have edited your post so you can see how much better it looks, and the code is easier to read.

Do you have a particular question? It isn't obvious from your post.
Or is this a reply to somebody else's question? If so, it really ought to have been posted as a reply on their thread.
And I shall have to send you an important administrative private message.

CR
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic