MinDate
Details
- MinDate[dates] accepts dates in all standard date notations, including DateObject, DateInterval, DateList, AbsoluteTime and DateString formats.
- For lists of dates, MinDate returns dates in the same form in which they were given. For TemporalData and Databin, DateObject expressions are returned.
- MinDate[tseries] works on all forms of TemporalData, including TimeSeries and EventSeries.
Examples
open all close allBasic Examples (4)
Find the first date in a list of date objects:
MinDate[{DateObject[{2022, 4, 8}, "Day"], DateObject[{2022, 4, 9}, "Day"], DateObject[{2022, 4, 7}, "Day"]}]Find the first date in a list of dates in different forms:
MinDate[{DateObject[{2020}], "1950 Jan 4th", 3867285330, {2022, 1, 1}}]Find the first instant within the interval representing September:
MinDate[DateInterval[DateObject[{2025, 9}, "Month"]]]Find the first day in a given quarter:
MinDate[DateInterval[DateObject[{2025, 7}, "Quarter"]], "Day"]Scope (2)
Find the first timestamp of a TimeSeries object:
ts = EarthquakeData[All, 8, {{2017, 1, 1}, {2021, 5, 16}}, "Magnitude"]MinDate[ts]Find the first timestamp of a Databin object:
bin = Databin["1qGFQ8v"]MinDate[bin]Properties & Relations (2)
MinDate[data] is equivalent to the first element of DateBounds[data]:
dates = {DateObject[{2022, 4, 8}, "Day"], DateObject[{2022, 4, 9}, "Day"], DateObject[{2022, 4, 7}, "Day"]};MinDate[dates]DateBounds[dates]MinDate[data] returns the earliest date in data and MaxDate[data] returns the latest date:
dates = {DateObject[{2022, 4, 8}, "Day"], DateObject[{2022, 4, 9}, "Day"], DateObject[{2022, 4, 7}, "Day"]};MinDate[dates]MaxDate[dates]Related Guides
History
Text
Wolfram Research (2020), MinDate, Wolfram Language function, https://reference.wolfram.com/language/ref/MinDate.html.
CMS
Wolfram Language. 2020. "MinDate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MinDate.html.
APA
Wolfram Language. (2020). MinDate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MinDate.html
BibTeX
@misc{reference.wolfram_2026_mindate, author="Wolfram Research", title="{MinDate}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/MinDate.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_mindate, organization={Wolfram Research}, title={MinDate}, year={2020}, url={https://reference.wolfram.com/language/ref/MinDate.html}, note=[Accessed: 13-June-2026]}