How to convert Oracle Date format to Java? [duplicate]
问题 This question already has answers here : Best way to convert Java SQL Date from yyyy-MM-dd to dd MMMM yyyy format (4 answers) getYesterdayDate_yyyy_MM_dd() this method with return type java.sql.date (1 answer) Closed 10 months ago . I have an Oracle Date type stored in the db in this format 06-MAR-20 , when i mapped it to a java domain class i had a property of type java.SQL.Date but i got the data in this format 2020-03-06 How can i stick to the exact same format from whats stored in my db?