https://g.co/gemini/share/bd7b8d535fa1
Validates that a value is a valid date, meaning a string (or an object that can be cast into a string) that follows a valid Y-m-d format (e.g. '2023-10-18').
// src/Entity/Author.php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
class Author
{
#[Assert\Date]
protected string $birthday;
}Powered by Froala Editor