# Cursor needs to be aware of the current date

**URL:** <https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297>\
**Category:** Feature Requests\
**Created:** [June 4, 2025, 7:43pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297 "2025-06-04T19:43:26Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![christerpapa](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/christerpapa/32/18888_2.png) [@christerpapa](https://forum.cursor.com/u/christerpapa)\
**Post date:** [January 7, 2025, 9:49am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/21 "2025-01-07T09:49:59Z")

</div>

I am having the same issue, i was about to post another topic about it until i saw this post. I would also love a better solution, i have a small work around though if that helps, although it isn’t perfect.

* * *

Is there a way for Cursor to get the current date? When adding comments.

Currently i have to change the date manually in the cursor rules, but it would be nice to get the current time and date. I tried to get it to run a terminal command to get the date, but it ignored that. Currently i just change the date in the rules everyday, but looking for a better way to do that.

By the above, i mean so that the Chat & Composer add the date, as i know there are plugins to do it manually.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 9, 2025, 5:39pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/22 "2025-01-09T17:39:05Z")

</div>

We currently have this as an available feature, not usually relevant to most people and we didn’t want it to confuse the AI.

Whether this might be something we can add behind a checkbox or something in the future, so I’ve added it to our internal feature tracker for now.

---

<div class="post-metadata">

**Author:** ![10ppa](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/10ppa/32/79319_2.png) [@10ppa](https://forum.cursor.com/u/10ppa)\
**Post date:** [February 7, 2025, 9:55pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/23 "2025-02-07T21:55:00Z")

</div>

It would be super helpful when you try to keep track of your progress and want to create for example an md file in where cursor will add a new entry with current date and a title  
That would be great

---

<div class="post-metadata">

**Author:** ![aLong](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/along/32/4101_2.png) [@aLong](https://forum.cursor.com/u/aLong)\
**Post date:** [February 19, 2025, 5:37am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/24 "2025-02-19T05:37:09Z")

</div>

thanks . 👍

---

<div class="post-metadata">

**Author:** ![Jeppe](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@Jeppe](https://forum.cursor.com/u/Jeppe)\
**Post date:** [February 22, 2025, 11:05am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/25 "2025-02-22T11:05:52Z")

</div>

Would also be quite helpful when composer is generating migrations, e.g. in laravel which are named with the data. Composer always name them 2024-03-21, probably because that’s the knowledge cutoff for Claude 3.5?

Given that this is marked as solved, when can we expect the checkbox to appear?

---

<div class="post-metadata">

**Author:** ![aLong](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/along/32/4101_2.png) [@aLong](https://forum.cursor.com/u/aLong)\
**Post date:** [February 25, 2025, 9:53am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/26 "2025-02-25T09:53:49Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/e/9/e93cb4f3301d59bad14ee54e45434830648538f1.png)

There are completions, but there is a small regret that I don’t know where to set the time zone.

@danperks

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 25, 2025, 11:11pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/27 "2025-02-25T23:11:50Z")

</div>

Understood, I don’t believe Tab will have this functionality as it would cause it too be too slow, but I’ll keep your feedback in mind!

---

<div class="post-metadata">

**Author:** ![PKDigital](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PKDigital](https://forum.cursor.com/u/PKDigital)\
**Post date:** [February 24, 2025, 11:46am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/28 "2025-02-24T11:46:04Z")

</div>

I often need to add a last updated timestamp to my apps. For example on developer documentation etc.

Cursor consistently gets the date and year incorrect and when I query it, says it doesn’t have access to the date and time.  
is this normal ?

> Prompt: Can you tell me what day and date and time it is?  
> Cursor: Today is Wednesday, February 14, 2024. I don’t have access to the current time.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 24, 2025, 12:18pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/29 "2025-02-24T12:18:05Z")

</div>

Hey, yes, that’s normal. No AI through an API will tell you what today’s date is because they don’t have access to real-time updates.

OpenAI:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/1/8/18e3ede86e3937725d2eaf125fc7e8ab8c0cb0d9.png)

Anthropic:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/1/711a3fa87e1ec0ab2561acd890280a66d5ca0767.png)

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [February 24, 2025, 12:27pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/30 "2025-02-24T12:27:42Z")

</div>

Its unexpected in the context of coding. Certain files need current date at least if not even time. I believe as Cursor added coding features for AI this part is missing

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [February 24, 2025, 6:19pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/31 "2025-02-24T18:19:19Z")

</div>

I also would like to use the current date in the naming of my adrs for instance.

I wonder if you could work around this limitation of LLMs with an mdc rule forcing cursor to run ‘date “+%Y-%m-%d”’ at the beginning of a composer session and use it inside the files created.

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [February 24, 2025, 9:11pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/32 "2025-02-24T21:11:31Z")

</div>

> [@PKDigital](#):
>
> I often need to add a last updated timestamp to my apps. For example on developer documentation etc.
> 
> Cursor consistently gets the date and year incorrect and when I query it, says it doesn’t have access to the date and time.  
> is this normal ?
> 
> > Prompt: Can you tell me what day and date and time it is?  
> > Cursor: Today is Wednesday, February 14, 2024. I don’t have access to the current time.

Here is my workaround that works in composer.

- create a `.cursor/rules/105-composer-date.mdc` file with the below content

```md
# Composer Date Handling

## Context
- When working with composer files or documentation that requires current date
- When date formatting needs to be consistent across the project
- When automated date insertion is needed

## Requirements
- Execute `date +%Y-%m-%d` to get the current date in YYYY-MM-DD format
- Store the date result in context for use in the current session
- Use the stored date consistently across all files that need it
- Update the date when a new session starts or when explicitly requested

## Examples
<example>
When asked about the current date or needing to insert it:
1. Execute: `date +%Y-%m-%d`
2. Store result (e.g., "2024-03-21")
3. Use stored date in files or responses
</example>

<example type="invalid">
- Do not hardcode dates
- Do not use different date formats
- Do not skip executing the date command when a new date is needed
</example>

```

- Ask composer what the date is, click run when prompted.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/a/7ab25eba2d8f49e23558bda7a5d4f4465613a505.png)

Kinda overengineered, but why not 🙂

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [February 25, 2025, 1:52am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/33 "2025-02-25T01:52:30Z")

</div>

sure but spending a prompt every time the IDE needs to include a date into code or docu? ufff

---

<div class="post-metadata">

**Author:** ![gandan.dev](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gandan.dev/32/17663_2.png) [@gandan.dev](https://forum.cursor.com/u/gandan.dev)\
**Post date:** [February 25, 2025, 3:06am UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/34 "2025-02-25T03:06:41Z")

</div>

FYI: The ChatGPT interface includes the current date in its system prompt, and Zed supports this via a command.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/1/7118b32a2251d4cebdec683c4eba7784ab2707a5.png)

---

<div class="post-metadata">

**Author:** ![Maz](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/maz/32/11908_2.png) [@Maz](https://forum.cursor.com/u/Maz)\
**Post date:** [March 3, 2025, 4:59pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/35 "2025-03-03T16:59:15Z")

</div>

To work around this I created a crontab in my system that will update a Cursor rule e.g. `0000-current-datetime.mdc` with the current datetime e.g. `2025-03-03 17:56 CET`. You then have to gitignore that file.

This is way over engineered as well but at least it does not require any command breaking the LLM output streaming.

@Cursor team please add this in context 🙏🏻🙏🏻🙏🏻

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 3, 2025, 5:05pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/36 "2025-03-03T17:05:34Z")

</div>

yeah, its interesting that Cursor always ads CWD to the prompt where its actually strange to have it sent to AI all the time unnecessarily. date-time would help so much.

---

<div class="post-metadata">

**Author:** ![teblam](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@teblam](https://forum.cursor.com/u/teblam)\
**Post date:** [May 23, 2025, 12:07pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/37 "2025-05-23T12:07:24Z")

</div>

That’s “normal” but it would be trivial to include the date of the current day in Cursor’s system prompt, and furthermore the current time.

I have a recurring issue in Cursor, where I give it instructions to look in my application’s logs for errors, but it will bring back days old issues as it has absolutely no sense of time and as people previously said I see this being an issue with things like updating documentation and such…

Including in Cursor’s system prompt the date would only add a few tokens per request, if that’s too expensive to include in all requests for Cursor by default it would be nice to at least have the option of including the current time.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 23, 2025, 12:08pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/38 "2025-05-23T12:08:25Z")

</div>

Wouldnt being more specific at what logs to look at or to look at highest date or latest entries etc. help with this?

---

<div class="post-metadata">

**Author:** ![teblam](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@teblam](https://forum.cursor.com/u/teblam)\
**Post date:** [May 23, 2025, 12:14pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/39 "2025-05-23T12:14:00Z")

</div>

Sure, and Cursor already has the idea to pipe my log command through tail to get the last fifty lines, I think I’ll just add this to my instructions, but if I get a longer error message it may truncate it halfway through…

And including date and time would still be a positive change for other reasons, maybe there’s a technical reason why Cursor’s engineers don’t include it in their system prompt, but as ChatGPT does it I don’t see why it would be more of an issue in Cursor.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 23, 2025, 12:15pm UTC](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297/40 "2025-05-23T12:15:56Z")

</div>

Yeah it would be practical, agreed 🙂

As a workaround for now some use scripts to insert date at end of .cursorrules when they start Cursor, or anywhere else practical (incl. snippets as keyboard shortcuts etc..)

[Previous page](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297.md?page=1)

[Next page](https://forum.cursor.com/t/cursor-needs-to-be-aware-of-the-current-date/100297.md?page=3)
