Skip to content

Add support for formatting datetime in the VIEW Field. #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
alexinea opened this issue May 21, 2025 · 1 comment
Open
3 tasks done

Add support for formatting datetime in the VIEW Field. #584

alexinea opened this issue May 21, 2025 · 1 comment
Labels
feature request New feature or request

Comments

@alexinea
Copy link

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

My FrontMatter contains the "updatedAt" field, with the format of YYYY/MM/DD HH:mm:ss. It is automatically updated by other plugins (such as Obsidian Thino). I need to display this field in the View Field in the format of YYYY-MM-DD (so that it can point to my journal files).

Describe the Feature you'd like

By formatting the datetime, I can associate the notes with my journals (my working notes). I can quickly identify the notes of the day in the backlinks of the journals (for example, by associating them through the "createdAt" field).

Alternatives

I tried the "Live Variables" plugin, but the way it works is not very satisfactory. It will refresh the elements, causing the content of the elements to be lost.

Additional Context

No response

@alexinea alexinea added the feature request New feature or request label May 21, 2025
@alexinea
Copy link
Author

for example, I used

`VIEW[\[\[{createdAt}\]\]][text(renderMarkdown)]`

and i'll render as:

[[2025/05/06 10:22:49]]

but... i want

[[2025-05-06]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant