#211·assert

Creating an Assert:datetime method

Author: JasonBenettCreated Jul 17, 2020Updated Nov 11, 2022

The goal is to create a fast way to assert that a string match a given date pattern. Something like:

Assert::datetime($myStringDate, 'Y-m-d H:i:s', 'My message');

What do you think about it ?