CI4 validation greater_than on date field |
HI ,
can i validate date with grater than ? this is my validation : Code: 'data_tour' => [ and this is the validation (not passed) : Data Partenza deve essere maggiore di oggi2025-04-21|2025-04-20 2025-04-21 is bigger than 2025-04-20...
Convert your date into a unix timestamp after validating it once as a valid date and then perform the greater_than validation. Alternatively, you could pass your dates in a specific format 'Ymd' and the comparison would work.
I create a custom rules:
Code: <?php solved |
Welcome Guest, Not a member yet? Register Sign In |