# Tasks not showing completed date

**URL:** https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920
**Category:** v1: Troubleshooting (legacy)
**Created:** [March 6, 2025, 7:36am UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920 "2025-03-06T07:36:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Snydley10](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@Snydley10](https://community.silverbullet.md/u/Snydley10)
#### Post date: [March 6, 2025, 7:36am UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/1 "2025-03-06T07:36:58Z")

</div>

I don’t know if this is something I need to configure, but on the Silverbullet demo page when a task is completed it shows a checkmark emoji and the date it was completed at the end of the line like:

 ![1000014489](https://community.silverbullet.md/uploads/default/original/2X/c/c5b8d38e4113e936aa4cb4227cdec26711a293c1.jpeg)

However, in my own instance this has never been the case. It just strikes through the text. I’m running 0.10.4

---

<div class="post-metadata">

### Author: ![snakewa](https://community.silverbullet.md/user_avatar/community.silverbullet.md/snakewa/32/1075_2.png) [@snakewa](https://community.silverbullet.md/u/snakewa)
#### Post date: [March 6, 2025, 9:24am UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/2 "2025-03-06T09:24:02Z")

</div>

check this out [https://silverbullet.md/Space%20Script@6003](https://silverbullet.md/Space%20Script@6003)

I just found it yesterday. It is actually using space-script with task:change hooks, the full script on the website

---

<div class="post-metadata">

### Author: ![Snydley10](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@Snydley10](https://community.silverbullet.md/u/Snydley10)
#### Post date: [March 6, 2025, 7:12pm UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/3 "2025-03-06T19:12:34Z")

</div>

Ahh well that explains it. Thanks for your help!

---

<div class="post-metadata">

### Author: ![MangeChats](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@MangeChats](https://community.silverbullet.md/u/MangeChats)
#### Post date: [November 30, 2025, 1:05pm UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/4 "2025-11-30T13:05:08Z")

</div>

Hello this subject really interested me, but the link seems broken from my PC: after a reindex animation in the toolbar, I just get a blank page (and the toolba)

Do you still have access to it ?  
I am specially interested in an entry documentation point documentation concerning the available hooks. Maybe you have an alternative link ?

The possibilities of sliberbullet seem very large but I am struggling to find the entry points concerning the API in general. I suppose I miss something…

---

<div class="post-metadata">

### Author: ![rharmonson](https://community.silverbullet.md/user_avatar/community.silverbullet.md/rharmonson/32/1038_2.png) [@rharmonson](https://community.silverbullet.md/u/rharmonson)
#### Post date: [November 30, 2025, 6:02pm UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/5 "2025-11-30T18:02:35Z")

</div>

The link is out dated due to [silverbullet.md](http://silverbullet.md) site update to v2.

Use this link: [https://v1.silverbullet.md/Space%20Script@6003](https://v1.silverbullet.md/Space%20Script@6003)

I have not tried the script but if you run into issues and are on SilverBullet v2, post in [v2: Troubleshooting](https://community.silverbullet.md/c/v2/16).

---

<div class="post-metadata">

### Author: ![MangeChats](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@MangeChats](https://community.silverbullet.md/u/MangeChats)
#### Post date: [December 28, 2025, 9:23am UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/6 "2025-12-28T09:23:47Z")

</div>

I think I miss something:  
I am using SilverBullet 2.3  
I thought space-scipt was replaced by space-lua.

I tried to write a space-lua script inspired by yours,  
but I keep bumping into  
silverbullet or self not defined errors.

Where could I find an example of a space-script handling an event ?  
Where shall I find the proper existing event to use ?

---

<div class="post-metadata">

### Author: ![Mr.Red](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mr.red/32/821_2.png) [@Mr.Red](https://community.silverbullet.md/u/Mr.Red)
#### Post date: [December 28, 2025, 10:40am UTC](https://community.silverbullet.md/t/tasks-not-showing-completed-date/1920/7 "2025-12-28T10:40:45Z")

</div>

This might be of help to you if you are running v2. This is a similar script in space-lua which adds the completed date/timestamp to the task when you check the task, and removes it when you uncheck it.

> [@How to list completed todos sorted by completion time?](https://community.silverbullet.md/t/how-to-list-completed-todos-sorted-by-completion-time/3669/2):
>
> Silverbullet doesn’t assign a timestamp to the completed tasks by default. But we can tell it to do this, with this workaround. use this space-lua script: event.listen { name = "task:stateChange", run = function(e) if e.data.newState == "x" and not e.data.text:find("%[completed:") then local text = e.data.text local completedAt = os.date("%Y-%m-%dT%H:%M:%S") local newText = text:gsub("^%[%s\*%]", "[x]") .. " [completed: " .. completedAt .. "]" …

Currently the task:StateChange has a known issue in which the event isn’t fired for task which are not on the current page
