Extract Dates

Extract dates from a given text. The API will return a list of dates with their positions in the text and the normalized form of the date. A large list of date formats is supported. For example, the text could contain dates in the form of "April 5th, 2035", "04/05/2035", or "05.04.2035". The normalized date is the date in the form of a timestamp (milliseconds since 1970).

GET
https://api.apileague.com/extract-dates
Example Request and Response
GET
https://api.apileague.com/{{ examples.getExtractDates }}
{
    "dates": [
        {
            "start_position": 3,
            "date": "April 5th, 2035",
            "normalized_date": 2059336800000,
            "tag": "DATETIME",
            "end_position": 18
        }
    ]
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}