Gives the date at the midpoint of a date interval or a list of dates.
MidDate[datespec]
MidDate[datespec, gran]
MidDate[datespec, gran, x]
MidDate[{DateObject[{2024, 10, 1}], DateObject[{2024, 10, 3}]}, "Day"]
→ DateObject[{2024, 10, 2}, Day]MidDate[DateObject[{2024}], "Day"]
→ DateObject[{2024, 7, 2}, Day]MidDate[{DateObject[{2024, 2}], DateObject[{2024, 4}]}, "Month"]
→ DateObject[{2024, 3}, Month]- CalendarType — default Automatic
- DateFormat — default Automatic
- DateGranularity — default Automatic
- Method — default Automatic
- TimeSystem — default Automatic
- TimeZone — default Automatic