Here you can find the source of get_Oracle_DateString_YYYYMMdd_HHmmss(java.util.Date date)
static public String get_Oracle_DateString_YYYYMMdd_HHmmss(java.util.Date date)
//package com.java2s; //License from project: Apache License import java.text.*; public class Main { static public SimpleDateFormat YYYYMMdd_HHmmss = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); static public String get_Oracle_DateString_YYYYMMdd_HHmmss(java.util.Date date) { if (date == null) return "NULL"; String dateString = "'" + YYYYMMdd_HHmmss.format(date) + "'"; return "TO_DATE(" + dateString + ", 'YYYY.MM.DD HH24:MI:SS')"; }/*from ww w .j a va 2 s.c om*/ }