Hi Clayton,
I got this from one of the community contributors, bestinj.
def getDate(data)
{
java.util.Calendar cal= java.util.Calendar.getInstance(java.util.Locale.getDefault()) ;
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("HH-mm-MM-dd-yy");
return format.format(cal.getTime());
}
Call the function as getDate(1)
Thanks to bestinj for the help
You can play with the SimpleDateFormat("HH-mm-MM-dd-yy") for different date formats.
Hope this helps.
Regards
adai