- DateSelect is typically used to filter out dates that satisfy a criterion, such as falling in a specific month or day of the week.
- In DateSelect[list,crit], crit is a Boolean expression, typically composed of date element tests, such as #Month==8 or #DayName==Monday.
- DateSelect supports all date elements available in DateValue, including "Year", "Month", "DayName" and "Week", expressed as a named Slot such as #Year, #Month, etc.
- For DateInterval inputs, DateSelect returns a list of dates using the calendar granularity specified by the interval.
Examplesopen allclose all
Basic Examples (4)
Selection criteria are typically reference date elements using Slot expressions but may use any Boolean criteria:
DateSelect extracts element values without converting calendars or changing time zones:
To select dates using a standardized time zone, first use TimeZoneConvert:
DateSelect can be used for scheduling purposes, picking out dates that match a given pattern, such as the first Monday in any given month:
Properties & Relations (1)
Possible Issues (1)
Dates may be converted to a different calendar prior to selection using CalendarConvert:
Neat Examples (3)
Wolfram Research (2020), DateSelect, Wolfram Language function, https://reference.wolfram.com/language/ref/DateSelect.html.
Wolfram Language. 2020. "DateSelect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DateSelect.html.
Wolfram Language. (2020). DateSelect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DateSelect.html