Really common groovy and Java code for Bonita
I seem to use this code all the time so I published it for others to use. Java Date to MySQL [cc lang=”groovy”] java.util.Date dt = new java.util.Date(); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”); String currentTime = sdf.format(dt); [/cc] date MySQL string to Java: [cc lang=”groovy”] import java.text.SimpleDateFormat; import java.text.DateFormat; String target = “2012-02-01 20:29:30”; […]