Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
current system date using sql date
rama murthy
Ranch Hand
Posts: 82
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 10336
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Have a look at the method System.currentTimeMillis().
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
John Bartlett
Ranch Hand
Posts: 116
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can you not do:
Date now = new Date(System.currentTimeMillis());
John
rama murthy
Ranch Hand
Posts: 82
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you very much both of you.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
compare year and date ??
comparison of dates
SQL date
future date validation
Inserting formatted Date into DB from java
More...