<p>I have an event that's set for:
Start Time: 08/26/2023 <strong>10:00PM</strong>
End Time: 08/27/2023 <strong>2:00AM</strong></p>
<p>This is for a front-end form creation for public use.</p>
<p>I'm getting this error &quot;<em>Start Date must be before End Date</em>&quot; when I set the start time at a later time than the end time. But this is a valid date for an event I'm trying to publish.</p>
<p>I'm already working with modules for Calendar, but I'm not sure how to fix the ruling for this.</p>

CC BY-SA 4.0
2023-08-07T14:50:09.473Z
Hi Shayne, can you elaborate on an event where start time occurs AFTER the end time? I honestly can't think of a use case where this would make any sense and it doesn't sound like something the ruling should be editable for.
cherrykoda
CC BY-SA 4.0
2023-08-08T00:54:58.740Z
@cherrykoda Hello! It's a night event that spans through midnight. The date is from the 26th-27th from 10pm to 2am the morning after. The back-end event creation accepted this date wherein front-end form unfortunately does not.
Shayne Garcia
CC BY-SA 4.0
2023-08-23T00:32:59.783Z
thanks for the context! I think the issue you're running into is that the Calendar module (is this custom or are you using a plugin?) isn't evaluating the entire date and is only comparing the times. Your start and end should be a full date.

In the CMS, be sure that you changed the end date to the day after in addition to adding the time.
cherrykoda
<solspace><plugin-solspacecalendar>
Calendar Start Date must be before End Date
# Calendar Start Date must be before End Date

(Asked by: username_0 on 2023-08-07)

I have an event that's set for:
Start Time: 08/26/2023 **10:00PM**
End Time: 08/27/2023 **2:00AM**

This is for a front-end form creation for public use.

I'm getting this error "*Start Date must be before End Date*" when I set the start time at a later time than the end time. But this is a valid date for an event I'm trying to publish.

I'm already working with modules for Calendar, but I'm not sure how to fix the ruling for this.

**Tags:** solspace, plugin-solspacecalendar

> **Comments:**
> **username_1**: Hi Shayne, can you elaborate on an event where start time occurs AFTER the end time? I honestly can't think of a use case where this would make any sense and it doesn't sound like something the ruling should be editable for.  
> **username_0**: @username_1 Hello! It's a night event that spans through midnight. The date is from the 26th-27th from 10pm to 2am the morning after. The back-end event creation accepted this date wherein front-end form unfortunately does not.  
> **username_1**: thanks for the context! I think the issue you're running into is that the Calendar module (is this custom or are you using a plugin?) isn't evaluating the entire date and is only comparing the times. Your start and end should be a full date.  In the CMS, be sure that you changed the end date to the day after in addition to adding the time.  

---

## 0 answers

