Get Current Timestamp

Get a timestamp of the current time in the format of a typical SQL timestamp.

Javadoc available at https://www.javatapas.com/docs/javatapas/lang/GetTimestamp.html


public static String getTimestamp(){

	DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");

	return df.format(new java.util.Date());

}