Extracting ISO dates from a string

I’ve written up an idea before that might be useful, and this was particularly oriented to someone that wasn’t getting the strict date required for their API functions such as setting appointments.

There are many problems the AI might have, even if you feed it today’s date in your system prompt. Can it accurately give the date of next Saturday?

If not, you’d better tell the AI that it can’t - and you can provide the AI with some functions that it can call on-demand that can do these calculations precisely.

Function ideas from another post of mine:

“name”: “day_of_week”,
“description”: “Calculates the name of the day of the week (example: “Wednesday”) when provided a calendar date.”

Or simply let AI get a calendar that it wouldn’t be able to replicate itself, and then it could reliably figure out this stuff.

“name”: “get_monthly_calendar”
“description”: “returns a graphical calendar of the whole month containing a particular date, so AI can understand the month’s days of the week”