dateTimeSeparate static method
分隔符转换.
Implementation
static String dateTimeSeparate(String time, String? dateSeparate, String? timeSeparate) {
if (dateSeparate != null) {
time = time.replaceAll("-", dateSeparate);
}
if (timeSeparate != null) {
time = time.replaceAll(":", timeSeparate);
}
return time;
}