cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What is the difference between java.sql.date and java.util.date

Former Member
0 Likes
743

Hi All,

What is the difference between java.sql.date and java.util.date and which is more preferable to use .How to convert date from one form to another .

Thanks.

View Entire Topic
Former Member
0 Likes

HI ,

util date is a superclass of sql date.

util date will be in yyyy-mm-dd format while sql date is in yyyy/mm/dd format by default.

If u create a date type context variable in Webdynpro, it will be sql date by default. sql date is commonly used for date values in back end. If u import a date variable from an RFC, it will be of sql date..

Regards

Fahad Hamsa