This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: current system date using sql date