The initial date format captures in Bonita is “Sun Sep 01 00:00:00 SGT 2013”. In database, i stored it in a column with string data type. Next time i want to use this data, i called the data and hold it in string variable. Then i parse it using this script:
SimpleDateFormat formatter = new SimpleDateFormat(“EEEE MMM dd HH:mm:ss z yyyy”);
String dateInString = d1;//d1 is a (string) bonita variable which i fetch from database
try {
Date date = formatter.parse(dateInString);
date
} catch (Exception e)
{
System.out.println("Error");
}
This maybe a long way but it might be a last resort =)
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.