I was trying to insert a value into one of the columns with DATE datatype in Oracle DB through java.
Tried with the below
insertSurveyQuery.append("cast(to_date('12/31/8888', 'MM/dd/yyyy' )as date), ");
OP in Oracle DB:
DEC-31-88
but i want the date to be stored like 12/31/8888.
Any of your help is appreciated!
-Thanks!
datecolumn does NOT have a "format". The SQL client (the application) formats the date value when displaying it. Just change the display format of dates in your SQL client.