How to Enforce Same Date and Later End Time Validation in SharePoint
Question details
The user needs to configure a SharePoint list validation rule that ensures both the Start Date and End Date occur on the exact same calendar day, and that the End Date's time is later than the Start Date's time.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Configuring a SharePoint list where users log events or tasks that are strictly required to start and finish on the exact same day without overlapping into subsequent months or days.
- Observed behavior
- Without proper list validation, users can enter mismatched dates (like different months) or end times that occur before the start time, leading to invalid data entries in the system.
Ensure you have 'Design' or 'Full Control' permissions on the SharePoint list to access and modify the List Validation Settings.
Apply List Validation to Compare Multiple Columns
Use SharePoint's List Validation settings rather than Column Validation, as it allows you to compare the Start Date and End Date columns simultaneously to enforce the same-day and later-time requirements.
In SharePoint, Column Validation cannot reference other columns. Because you need to compare the Start Date against the End Date, the validation must be applied at the list level.
The formula checks that the Year, Month, and Day of both columns are identical, and then verifies that the End Date value (which includes time) is mathematically greater than the Start Date.
Navigate to your SharePoint list, click the 'Gear' icon (Settings) in the top right corner, and select 'List settings' from the dropdown menu.
Under the 'General Settings' section on the List Settings page, click on 'Validation settings'.
In the Formula box, enter the exact formula: =AND(YEAR([Start Date])=YEAR([End Date]),MONTH([Start Date])=MONTH([End Date]),DAY([Start Date])=DAY([End Date]),[End Date]>[Start Date])
In the 'User Message' box, type a clear error message (e.g., 'The End Date must be on the same calendar day as the Start Date, and the end time must be later.') and click 'OK' to save.

Manage Your Exported SharePoint Data Seamlessly with WPS Office
While SharePoint handles list validation for your enterprise data, WPS Office is the perfect lightweight, free solution for analyzing your exported list data, generating reports, and managing daily documents with full Microsoft Office format compatibility.
- 1. Download and Install: Get the free WPS Office installer from the official website and install it on your device.
- 2. Export SharePoint List: In your SharePoint list, click 'Export to Excel' to download your validated data.
- 3. Open and Analyze in WPS Spreadsheet: Open the downloaded .iqy or .xlsx file seamlessly in WPS Spreadsheet to sort, filter, and analyze your data.

Frequently Asked Questions
Why does my SharePoint validation formula give a syntax error?
Syntax errors usually occur due to regional settings in SharePoint. In some regions, SharePoint requires semicolons (;) instead of commas (,) to separate arguments inside functions like AND(), YEAR(), and MONTH().
Can I use column validation instead of list validation for comparing two dates?
No, SharePoint column validation operates on a single field and does not allow you to reference other columns. You must use List Validation settings to compare the 'Start Date' and 'End Date' fields.
Is there a shorter formula to check if two dates are the same day?
Yes. You can use the INT function to strip the time portion of a date field. A shorter alternative formula is =AND(INT([Start Date])=INT([End Date]), [End Date]>[Start Date]).
How do I fix the formula if my columns have different names?
You need to replace '[Start Date]' and '[End Date]' in the formula with the exact display names of your columns, enclosed in square brackets. For example, if your column is named 'Beginning', you would use '[Beginning]'.




