public class DateUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter |
MEDIUM_FORMATTER |
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
formatLocalDateTime(LocalDateTime localDateTime)
Formats a LocalDateTime object to a string using the MEDIUM_FORMATTER.
|
public static final DateTimeFormatter MEDIUM_FORMATTER
public static Optional<String> formatLocalDateTime(LocalDateTime localDateTime)
localDateTime - the LocalDateTime to format, can be nullCopyright © 2025. All rights reserved.