Table of contents
TOC
Collapse the table of content
Expand the table of content

List.Dates

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

List.Dates(start as date, count as number, step as duration) as list

About

Returns a list of date values of size count, starting at start. The given increment, step, is a duration value that is added to every value.

Example 1

Create a list of 5 values starting from New Year's Eve (#date(2011, 12, 31)) incrementing by 1 day(#duration(1, 0, 0, 0)).

List.Dates(#date(2011, 12, 31), 5, #duration(1, 0, 0, 0))

12/31/2011 12:00:00 AM
1/1/2012 12:00:00 AM
1/2/2012 12:00:00 AM
1/3/2012 12:00:00 AM
1/4/2012 12:00:00 AM
© 2018 Microsoft