Class DateUtils
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.util.DateUtils
Date utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlocalDateTimeToString(LocalDateTime dateTime, String pattern) Get the date and time from LocalDateTime with Pattern.static StringlocalDateToString(LocalDate date, String pattern) Get the date from LocalDate with Pattern.static StringlocalTimeToString(LocalTime time, String pattern) Get the time from LocalTime with Pattern.
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
localDateToString
Get the date from LocalDate with Pattern.- Parameters:
date- LocalDate valuepattern- date pattern format- Returns:
- active document
-
localTimeToString
Get the time from LocalTime with Pattern.- Parameters:
time- LocalTime valuepattern- time pattern format- Returns:
- active document
-
localDateTimeToString
Get the date and time from LocalDateTime with Pattern.- Parameters:
dateTime- LocalDateTime valuepattern- time pattern format- Returns:
- active document
-