Danack / Params

Framework agnostic validation
MIT License
6 stars 1 forks source link

dataetime should be an extract rule #10

Closed Danack closed 2 years ago

Danack commented 4 years ago

Currently you need to do:

                new GetString(),
                new ValidDatetime()

It'd be way more sane to have it done in a single step, with a format string or set of strings.

Danack commented 4 years ago

Also, they should be DateTimeImmutable

Danack commented 2 years ago

Someone can ask for this.