# Dry-validation messages formating

**URL:** <https://discourse.dry-rb.org/t/dry-validation-messages-formating/361>\
**Category:** dry-validation\
**Created:** [October 11, 2017, 7:10am UTC](https://discourse.dry-rb.org/t/dry-validation-messages-formating/361 "2017-10-11T07:10:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor-alexandrov](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/igor-alexandrov/32/141_2.png) [@igor-alexandrov](https://discourse.dry-rb.org/u/igor-alexandrov)\
**Post date:** [October 11, 2017, 7:10am UTC](https://discourse.dry-rb.org/t/dry-validation-messages-formating/361/1 "2017-10-11T07:10:34Z")

</div>

Hello. I added some custom date predicates to my schemas.

```ruby
module Leidang
  module Predicates
    include Dry::Logic::Predicates

    predicate(:after_or_equal_to?) do |value, current|
      current >= value
    end

    predicate(:before_or_equal_to?) do |value, current|
      value.present? ? current <= value : true
    end
  end
end

```

And now when I use them in my schemas I get the following message “must be before or equal to 2017-06-10” but I want “must be before or equal to 06/10/2017”
