# Basic question for porgramming

**URL:** <https://community.silverbullet.md/t/basic-question-for-porgramming/2657>\
**Category:** Lua\
**Created:** [July 27, 2025, 8:21pm UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657 "2025-07-27T20:21:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukwro](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lukwro](https://community.silverbullet.md/u/lukwro)\
**Post date:** [July 27, 2025, 8:21pm UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/1 "2025-07-27T20:21:38Z")

</div>

Hi all,

I’m new in Silverbullet nad currently trying to link from my Home page to the newest daily.  
Can you haelp in creatinf a fucntion which will work [[Daily/{{today}}]]

Thank you

---

<div class="post-metadata">

**Author:** ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)\
**Post date:** [July 27, 2025, 8:39pm UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/2 "2025-07-27T20:39:00Z")

</div>

Maybe there are better solutions, but this works

```auto
${"[[" .. "Daily/" .. date.today() .. "]]"}

```

---

<div class="post-metadata">

**Author:** ![lukwro](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lukwro](https://community.silverbullet.md/u/lukwro)\
**Post date:** [July 27, 2025, 9:07pm UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/3 "2025-07-27T21:07:44Z")

</div>

![image](https://community.silverbullet.md/uploads/default/original/2X/f/f75062bc19f027ea740af52b9b83d89ca036118e.png)  
unfortunately it’s not working

---

<div class="post-metadata">

**Author:** ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)\
**Post date:** [July 27, 2025, 9:47pm UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/4 "2025-07-27T21:47:29Z")

</div>

yeah, my bad that’s not space lua. That’s a lua expression. You have to put that into your document directly

---

<div class="post-metadata">

**Author:** ![lukwro](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lukwro](https://community.silverbullet.md/u/lukwro)\
**Post date:** [July 28, 2025, 9:53am UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/5 "2025-07-28T09:53:17Z")

</div>

So do you think it’s possibe?

---

<div class="post-metadata">

**Author:** ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)\
**Post date:** [July 28, 2025, 11:02am UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/6 "2025-07-28T11:02:35Z")

</div>

You have to copy and paste (Select with mouse, press `Ctrl-C`, go to silverbullet, `Ctrl-V`) this text: ~~`${"[[" + "Daily/" + date.today() + "]]"}`~~ `${"[[" .. "Daily/" .. date.today() .. "]]"}`, into your document

---

<div class="post-metadata">

**Author:** ![lukwro](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lukwro](https://community.silverbullet.md/u/lukwro)\
**Post date:** [July 28, 2025, 11:22am UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/7 "2025-07-28T11:22:59Z")

</div>

this script was problematic bit I think I found solution. Correct verions:

```auto
${"[[Daily/" .. date.today() .. "]]"}

```

---

<div class="post-metadata">

**Author:** ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)\
**Post date:** [July 28, 2025, 11:52am UTC](https://community.silverbullet.md/t/basic-question-for-porgramming/2657/8 "2025-07-28T11:52:47Z")

</div>

True this would probably be the more correct solution, but in spacelua the `+` should also work for string concatenation
