aspose file tools
The moose likes Beginning Java and the fly likes How to convert now date to Timestamp ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to convert now date to Timestamp ??" Watch "How to convert now date to Timestamp ??" New topic
Author

How to convert now date to Timestamp ??

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 165
Hi,
can you please tell me how to convert the current date (now) to Timestamp ?
thanks
your help is appreciated
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
Try "new java.sql.Timestamp(System.currentTimeMillis())"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert now date to Timestamp ??