Date & Time Extraction

Extract and parse dates, times, and temporal expressions from natural language text. Convert mentions like "next Tuesday" or "Q3 2024" into structured date formats.

Key Points

  • Extract explicit dates (January 15, 2024) and relative dates (next week)
  • Parse time expressions and durations
  • Handle multiple date formats and conventions
  • Useful for event extraction and timeline building
  • Support for fiscal quarters and business date conventions

Example

javascript
const response = await fetch('https://api.entity-detector.com/v1/analyze', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'The meeting is scheduled for March 15, 2024 at 2:30 PM.'
  })
});

const result = await response.json();
// Dates and times are included in entity analysis

Frequently Asked Questions

How are relative dates handled?

Relative dates like "tomorrow" or "next week" are identified as temporal expressions. The API does not resolve them to specific dates as that requires knowing the reference date.

What date formats are supported?

Common formats like MM/DD/YYYY, DD-MM-YYYY, and natural language dates are recognized. Ambiguous formats (01/02/03) may be parsed differently based on context.

Try Entity Extraction Now

See entity extraction in action with our interactive demo or start building with the API.

Related Resources