I am using following code to get date in \"dd/MM/yyyy HH:mm:ss.SS\" format.
import java.text.SimpleDateFormat; import java.util.Calendar; import
use
Date date = new Date(); String strDate = sdf.format(date);
intead Of
Calendar cal = Calendar.getInstance(); String strDate = sdf.format(cal.getTime());