List of utility methods to do Timestamp Create
String | getTimestamp() get Timestamp SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); return sdf.format(new Date()) + (int) ((Math.random() * 900000 + 100000)); |
String | getCurrentTimestamp() Get current time include time zone to save to DB return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar .getInstance().getTime()); |
String | getCurrentTimestamp() Get current time include time zone to save to DB return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar .getInstance().getTime()); |