Today's Date
Get the current date before performing web searches or date-sensitive operations.
Instructions
- •Run
date "+%Y-%m-%d"to get today's date - •Extract the current year from the result
- •Use this year in web search queries instead of any assumed or hardcoded year
- •Report the current date, then proceed with the task using correct dates
When to use
- •Before web searches that would include a year (e.g., "React Query 2024" should become "React Query 2025" if we're in 2025)
- •When searching for "latest", "current", "recent", or "up-to-date" documentation
- •When the user asks about recent releases, current versions, or contemporary information
- •Any task where using an outdated year would return stale results
Example
If asked to search for "Next.js best practices 2024" and today is 2025-12-25:
- •Get current date: 2025-12-25
- •Update search to: "Next.js best practices 2025"
- •Perform the corrected search