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 to convert now date to Timestamp ??

 
majid nakit
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can you please tell me how to convert the current date (now) to Timestamp ?
thanks
your help is appreciated
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try "new java.sql.Timestamp(System.currentTimeMillis())"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic