WLJS LogoWLJS Notebook

DateBounds

DateBounds[{date1, date2, …}] gives the earliest and latest of the datei.

DateBounds[tseries] gives the first and last dates in the time series tseries.

DateBounds[bin] gives the first and last time stamps in the databin bin.

DateBounds[interval] gives the start and end dates of the date interval interval.

DateBounds[interval, gran] gives the endpoints of interval in the specified granularity gran.

Examples

Find bounds of a list of dates:

DateBounds[{DateObject[{2020, 1, 1}], DateObject[{2022, 6, 15}], DateObject[{2021, 3, 10}]}]

Get bounds from a time series:

ts = TimeSeries[{{1, 10}, {2, 20}, {3, 15}}];
DateBounds[ts]

Please visit the official Wolfram Language Reference for more details.

On this page