.ByPublishDate and .GroupByPublishDate if .PublishDate not defined

Is it possible to use for sorting and grouping .Date value if the .PublishDate is not defined?

Blanks:

{{ range .Data.Pages.GroupByPublishDate "2006-01" }}
{{ range .Data.Pages.ByPublishDate }}
2 Likes