Win a copy of Functional Reactive Programming this week in the Other Languages 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic