The Artima Developer Community
Sponsored Link

Java Buzz Forum
How to convert java.sql.Date to java.util.Date in Java with Example

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Javin Paul

Posts: 1090
Nickname: javinpaul
Registered: Jan, 2012

Javin Paul is Java Programmer working on Finance domain.
How to convert java.sql.Date to java.util.Date in Java with Example Posted: Dec 24, 2012 2:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Javin Paul.
Original Post: How to convert java.sql.Date to java.util.Date in Java with Example
Feed Title: Java67
Feed URL: http://www.java67.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
Latest Java Buzz Posts
Latest Java Buzz Posts by Javin Paul
Latest Posts From Java67

Advertisement
How to convert java.sql.Date into java.util.Date and vice-versa is a popular JDBC interview question which is also asked as follow-up question of difference between java.sql.Date and java.util.Date which we have saw in our last article. Since both SQL date and Util date stores values as long millisecond , its easy to convert them back and forth. Both java.sql.Date and java.util.Date provides convenient method called getTime() which returns long millisecond equivalent of wrapped date value. Here is quick example of converting java.util.Date to java.sql.Date and then back to util Date. This article is in next of earlier post on Java Date and Time API  like How to convert Date to String and How to find current Date and Timestamp in Java on any timezone. if you haven't read them already you may find them useful.
Read more »

Read: How to convert java.sql.Date to java.util.Date in Java with Example

Topic: ANTLR – Semantic Predicates Previous Topic   Next Topic Topic: Video for #InnoIT – Enabling Innovation in IT – Dell World Social Think Tank

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use