Class DateTimeValueConverter

java.lang.Object
ch.tocco.nice2.rest.entity.impl.values.DateTimeValueConverter
All Implemented Interfaces:
ValueConverter<org.joda.time.DateTime>

@Component public class DateTimeValueConverter extends Object implements ValueConverter<org.joda.time.DateTime>
This class creates DateTime objects from inbound date strings. The inbound date string must be in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
  • Constructor Details

    • DateTimeValueConverter

      public DateTimeValueConverter()
  • Method Details

    • convert

      public org.joda.time.DateTime convert(Object inboundValue)
      Specified by:
      convert in interface ValueConverter<org.joda.time.DateTime>