Here you can find the source of dateToOracleDateString(Date date)
public static String dateToOracleDateString(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String dateToOracleDateString(Date date) { System.out.println("To Oracle Date; [" + formatDate(date, "dd-MMM-yy") + "]"); return formatDate(date, "dd-MMM-yy"); }/*from ww w.j av a 2 s. c o m*/ public static String formatDate(Date date, String dateFormat) { SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); return sdf.format(date); } }