#date
- blog🇬🇧
[JoliCode] Quick PHP tip: Initialize a DateTime object from string, but with time resetted
Initialize the PHP DateTime object For a variety of reasons, we all have to initialize DateTime objects from strings like 2023-02-14. The quick and clean way to get an object from this kind of string is to use