直接上代码
String _test() {
try {
String source = "Thu Aug 24 15:34:15 CST 2023";
var dateTime = DateFormat("EEE MMM dd HH:mm:ss \'CST\' yyyy","en_US").parse(source);
return dateTime.toString();
} catch (e) {
}
return "error";
}