Here you can find the source of getTimestampToOracle()
public static final String getTimestampToOracle()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; public class Main { public static final String getTimestampToOracle() { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return sdf.format(System.currentTimeMillis()); }//from w ww. j a v a 2s.c om }