Sam
0
Q:

formatting specific date and time in localdatetime

LocalDateTime date = LocalDateTime.parse("1995-07-25T15:03:45");
0
String dateTime = "1995-07-25 15:03:45";
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime date = LocalDateTime.parse(dateTime, dateTimeFormatter);
0

New to Communities?

Join the community