Skip to content

[Bug]: Filtering by date fails with custom date formatting #86

@tj-cahill

Description

@tj-cahill

Bug Description

If I set a custom date format for naming my notes in the core Daily Notes plugin, this causes the date filtering in the Daily Notes Editor to fail, showing either an incorrect selection of daily notes or none whatsoever. I assume this is because the title of the note is being parsed assuming fixed positions for month, day, and year, so a note that in my vault structure is named 2026-04-23.md is interpreted by the plugin as referring to the 26th day of April in the year 2023, as opposed to the 23rd day of April in the year 2026.

It seems like there should be workarounds for this, such as allowing the user to enter a custom format in the plugin settings to match the functionality in the core plugin, or using the file creation date rather than the title, but at very least, the limitation should be documented somewhere instead of just failing quietly and showing no notes at all.

Relevant Screenshot

Image

To Reproduce

  1. In the settings of the Daily Notes core plugin, change Date format to Custom
  2. Enter a custom date format with different positions for day and year (for reference, I use YYYY/MM-MMMM/YYYY-MM-DD)
  3. Open the Daily Notes Editor and click on the "Select date range" icon in the top right corner
  4. Select any option other than All Notes

Obsidian Version

1.12.7

Which plugin are you using for daily notes?

  • Default Daily Note Plugin
  • Periodic Notes Plugin

Checklist

  • I updated to the latest version of the plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions