Date​Stack​Option Date​Stack​Option Date​Stack​Option Date​Stack​Option Enum


Indicates the unit of time used to group files into folders if a CommonFolderQuery based on date is used to create a QueryOptions object.

public : enum class DateStackOptionpublic enum DateStackOptionPublic Enum DateStackOption// You can use this enum in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


For example, if you create a QueryOptions object using CommonFolderQuery.GroupByYear the DateStackOption property will contain the DateStackOption.Year value.


Month Month Month Month

The content is grouped by month.

None None None None

The query options are not based on the date.

Year Year Year Year

The content is grouped by year.