You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
526 B

package com.connor.plm.sb02;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class DateTest {
public static void main(String[] args) {
String ssString = "sss.sss";
String[] split = ssString.split("\\.");
System.out.println(split.length);
String takeeffect = "";
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-M-dd HH:mm");
//LocalDateTime createDate = LocalDateTime.parse(create, fmt);
LocalDateTime takeeffectDate = LocalDateTime.parse(takeeffect, fmt);
}
}