How to show created-at and updated-at in block properties

Hi,

I’m pretty new to LogSeq and I’m having trouble finding what I need in the documentation. I’m trying to create a note template that auto-populates the block properties for created-at and updated-at in a DateTime format (e.g., 2023-09-28 11:34:19).

I’ve searched the documentation and the discussion board for help but couldn’t find anything that works. Would somebody please help?

Thanks!

JELPHD

1 Like

These properties are reserved ones, for holding Epoch (Unix) time for pages, and also for blocks (disabled by default, can be enabled in config.edn).
These properties are hidden from the UI.
You should rename your properties…

Hi,

If I name the property created, how do I instruct LogSeq to automatically populate the field with the DateTime?

Thanks!

JELPHD

You cannot.
You can only enable block timestamp feature, and have created-at and updated-at automatically with epoch (Unix) time
By changing config.edn:
:feature/enable-block-timestamps? true

在块中显示创建时间,我也很需要这个功能,pc端也许可以通过插件来实现,但安卓端无法运行插件,这真是有点遗憾,

You want to display created-at and updated-at, right? I created a plugin for that purpose.

1 Like

You want to display created-at and updated-at, right? I created a plugin for that purpose.
感谢您的工作 @YU000jp 可惜不支持 Android device