From 2e8364994f456a1406b67e9cbde9c2d3d39b4a97 Mon Sep 17 00:00:00 2001 From: Shawn McCool Date: Thu, 11 Oct 2012 08:14:55 +0200 Subject: [PATCH] changed date format in validation documentation to match ISO8601 --- laravel/documentation/validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/documentation/validation.md b/laravel/documentation/validation.md index 0f17dec0..c717276a 100644 --- a/laravel/documentation/validation.md +++ b/laravel/documentation/validation.md @@ -196,11 +196,11 @@ Many times, when updating a record, you want to use the unique rule, but exclude #### Validate that a date attribute is before a given date: - 'birthdate' => 'before:1986-28-05'; + 'birthdate' => 'before:1986-05-28'; #### Validate that a date attribute is after a given date: - 'birthdate' => 'after:1986-28-05'; + 'birthdate' => 'after:1986-05-28'; > **Note:** The **before** and **after** validation rules use the **strtotime** PHP function to convert your date to something the rule can understand.