OpenBI Docs Buy

List.DateTimes

A list of datetimes from a start, a set count of them, each a step from the last.

Group: List. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

List.DateTimes(start as datetime, count as number, step as duration) as list
ParameterTypeDescription
startdatetimeThe first datetime.
countnumberHow many datetimes.
stepdurationThe time between them.

Returns

list. The datetimes.

Examples

Half-hour delivery slots

List.DateTimes(#datetime(2024, 3, 1, 8, 0, 0), 4, #duration(0, 0, 30, 0))
{#datetime(2024, 3, 1, 8, 0, 0), #datetime(2024, 3, 1, 8, 30, 0), #datetime(2024, 3, 1, 9, 0, 0), #datetime(2024, 3, 1, 9, 30, 0)}

List.Dates, List.DateTimeZones, List.Times.

Last updated · OpenBI Studio 0.3.79