Returns regex patterns for validating common date formats like MM/DD/YYYY, DD-MM-YYYY, and ISO 8601. Access via MCP in Cursor or Windsurf, or REST at `/v1/regex/pattern/date`. Essential for form validation and data parsing where you need guaranteed accurate date regex instead of searching Stack Overflow for the hundredth time.
curl "https://tinyfn.io/v1/regex/pattern/date" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/regex/pattern/date', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/regex/pattern/date',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's regex tools:
{
"mcpServers": {
"tinyfn-regex": {
"url": "https://tinyfn.io/mcp/regex",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Supports common formats including MM/DD/YYYY, DD-MM-YYYY, YYYY-MM-DD (ISO 8601), MM.DD.YYYY, and variations with different separators like hyphens, slashes, and dots.
Call the tool through your AI assistant in Cursor or Claude Code to get the appropriate regex pattern, then apply it to your form validation or data processing code.
The regex validates format structure only, not calendar logic. For leap year validation and actual date existence checking, combine with proper date parsing libraries.
Yes, the tool provides patterns for various international date formats including European DD/MM/YYYY and ISO standard YYYY-MM-DD formats.
Provides battle-tested, deterministic patterns that handle edge cases and common variations, eliminating regex debugging and ensuring consistent validation across projects.
Get your free API key and start using Get Date Pattern in seconds.
Get Free API Key