This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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
comparison of dates
future date validation
SQL date
Inserting formatted Date into DB from java
compare year and date ??