getDate static method
Implementation
static String getDate() {
DateFormat dateFormat = DateFormat("yyyy-MM-dd");
String currentDateTime = dateFormat.format(DateTime.now());
return currentDateTime;
}
static String getDate() {
DateFormat dateFormat = DateFormat("yyyy-MM-dd");
String currentDateTime = dateFormat.format(DateTime.now());
return currentDateTime;
}