Skip to content

fix(template): resolve invalid date format error in daily note#10

Open
ravenwits wants to merge 1 commit intoCyanVoxel:mainfrom
ravenwits:patch-1
Open

fix(template): resolve invalid date format error in daily note#10
ravenwits wants to merge 1 commit intoCyanVoxel:mainfrom
ravenwits:patch-1

Conversation

@ravenwits
Copy link
Copy Markdown

What Changed & Why

date: line → combined date and time into one line using YYYY-MM-DD[T]HH:mm (ISO-like format).

Removed tp.file.title reference → that’s what was causing the invalid format error when the file title didn’t match YYYYMMDD.

Added weekday CSS class directly via tp.date.now("dddd").toLowerCase() — now you’ll always get a valid weekday class like monday, tuesday, etc.

Works perfectly whether your file is called 2025-10-05.md, Daily Note.md, or anything else.

What Changed & Why

date: line → combined date and time into one line using YYYY-MM-DD[T]HH:mm (ISO-like format).

Removed tp.file.title reference → that’s what was causing the invalid format error when the file title didn’t match YYYYMMDD.

Added weekday CSS class directly via tp.date.now("dddd").toLowerCase() — now you’ll always get a valid weekday class like monday, tuesday, etc.

Works perfectly whether your file is called 2025-10-05.md, Daily Note.md, or anything else.
Copy link
Copy Markdown

@kikikilop153 kikikilop153 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants