Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i get system date in java http servlets

 
Bhasker Reddy
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i find system date in java servlets.
and convert it into
02-OCT-01 FORMAT
CAN ANYONE SUGGEST ME SOMETHING
 
shilpa kulkarni
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to insert it into database use -
java.sql.Date d = new java.sql.Date(System.currentTimeMillis())
 
Anonymous
Ranch Hand
Posts: 18944
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic