getDateTime static method
Implementation
static String getDateTime() {
DateFormat dateFormat = DateFormat("yyyy-MM-dd HH:mm:ss");
String currentDateTime = dateFormat.format(DateTime.now());
return currentDateTime;
}
static String getDateTime() {
DateFormat dateFormat = DateFormat("yyyy-MM-dd HH:mm:ss");
String currentDateTime = dateFormat.format(DateTime.now());
return currentDateTime;
}