I need to retrieve dates from Oracle as Java SimpleDateFormat M/D/YYYY (for instance, Independence Dat would be 7/4/1776). However, looking at https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_commands_1029.htm#OLADM780 there appears only to be a way to retrieve MM/dd/yyyy (07/04/1776).
Are there any tricks to retrieve the date the original way? I suppose I could play around with all sorts of if IF statements, and substrings, but that seems quite complicated.
That is to say
select to_char(sysdate, 'MM/DD/YYYY') from dual works
but
select to_char(sysdate, 'M/D/YYYY') from dual does not.