Package org.ametys.plugins.forms
Class FormDateUtils
java.lang.Object
org.ametys.plugins.forms.FormDateUtils
Forms date utils
- 
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTimeasZonedDateTime(LocalDate date) Converts thisLocalDateobject to aZonedDateTime.static ZonedDateTimeparseZonedDateTime(String zonedDateTimeAsString) Parses a String into aZonedDateTime, using ISO date formatter.static StringzonedDateTimeToString(ZonedDateTime zonedDateTime) Converts aZonedDateTimeobject toStringusing the ISO date formatter 
- 
Method Details
- 
asZonedDateTime
Converts thisLocalDateobject to aZonedDateTime.- Parameters:
 date- the LocalDate- Returns:
 - an instant representing the same point on the time-line as this 
LocalDateobject 
 - 
zonedDateTimeToString
Converts aZonedDateTimeobject toStringusing the ISO date formatter- Parameters:
 zonedDateTime- the zoned date time- Returns:
 - the zoned date time as a 
String 
 - 
parseZonedDateTime
Parses a String into aZonedDateTime, using ISO date formatter.- Parameters:
 zonedDateTimeAsString- the zoned date time as string- Returns:
 - the 
ZonedDateTimeobject 
 
 -