aspose file tools*
The moose likes Beginning Java and the fly likes current system date using sql date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "current system date using sql date" Watch "current system date using sql date" New topic
Author

current system date using sql date

rama murthy
Ranch Hand

Joined: Jan 13, 2006
Posts: 82
Is it possible to get the current sysdate only using sql date. Because sql date has only one constructor that takes milliseconds as parameter.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at the method System.currentTimeMillis().


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
Hi,

Can you not do:



John
rama murthy
Ranch Hand

Joined: Jan 13, 2006
Posts: 82
Thank you very much both of you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: current system date using sql date
 
Similar Threads
SQL date
future date validation
comparison of dates
compare year and date ??
Inserting formatted Date into DB from java