Can I insert my system date in a prompt? #1119

Closed
opened 2025-11-11 14:37:56 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @rob215x on GitHub (Jun 3, 2024).

My LLM "Lumina" doesn't know what day or time it is, unless I tell her. I can say, "Hey Lumina today is June 3, 2024 and it's 6:30pm. Do you know what day of the week it is?" and she'll give the correct answer.

But I'd like to have a prompt that automatically inserts today's date and time so that when I start a new chat, Lumina already knows what day it is. Can I do that?

This would also be an example of how to insert any system vars into prompts! I may have missed it, but I couldn't find it in the documentation.

Thanks!

Originally created by @rob215x on GitHub (Jun 3, 2024). My LLM "Lumina" doesn't know what day or time it is, unless I tell her. I can say, "Hey Lumina today is June 3, 2024 and it's 6:30pm. Do you know what day of the week it is?" and she'll give the correct answer. But I'd like to have a prompt that automatically inserts today's date and time so that when I start a new chat, Lumina already knows what day it is. Can I do that? This would also be an example of how to insert any system vars into prompts! I may have missed it, but I couldn't find it in the documentation. Thanks!
Author
Owner

@justinh-rahb commented on GitHub (Jun 3, 2024):

{{CURRENT_DATE}}

@justinh-rahb commented on GitHub (Jun 3, 2024): `{{CURRENT_DATE}}`
Author
Owner

@silentoplayz commented on GitHub (Jun 4, 2024):

As of v0.2.0, two new variables were added: {{CURRENT_DATE}} and {{USER_NAME}} for dynamic prompts.

@silentoplayz commented on GitHub (Jun 4, 2024): As of v0.2.0, two new variables were added: `{{CURRENT_DATE}}` and `{{USER_NAME}}` for dynamic prompts.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1119