class DateConverter implements Converter<Date, Long> {

    @NonNull
    @Override
    public Date toConverted(@Nullable Long supported) {
        if (supported == null) {
            return new Date();
        }
        return new Date(supported);
    }

}