Java解析字符串“Fri Jul 03 15:48:32 CST 2022”为Date


// Fri Jul 03 15:48:32 CST 2022
SimpleDateFormat dateTimeFormatForUS 
= new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.US);

Date date = dateTimeFormatForUS.parse("Fri Jul 03 15:48:32 CST 2022");

你可能感兴趣的:(Java代码,Date)