![]() |
DateTime field validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: DateTime field validation (/showthread.php?tid=92617) |
DateTime field validation - serialkiller - 03-18-2025 I'm trying to validate a dateTime field but I can't get it to work, is this not possible or am I doing something wrong? PHP Code: 'myDateTime' => 'required|valid_date["Y-m-d H:i"]', RE: DateTime field validation - grimpirate - 03-18-2025 Lose the double quotes in the square brackets. RE: DateTime field validation - serialkiller - 03-18-2025 (03-18-2025, 06:33 AM)grimpirate Wrote: Lose the double quotes in the square brackets. Perfect, I missed the quotes during the various tests, thanks, it seems to work |