GET /v1/date-converterConvert date between formats
Format Utils lf-format-utils
Reads a date written in almost any style and rewrites it in several other styles. Parses a date string from various formats (ISO, US, EU, Unix timestamp, natural language) and returns it in multiple output formats.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Date string in any format |
format | string | No | Target format |
Response Schema
success (boolean): Operation success
input (string): Original input
parsed (string): Parsed ISO date
formats (object): Output in all formats
cURL Example
curl 'https://lf-format-utils.laminarforge.dev/v1/date-converter?input=2024-01-15' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/date-converter'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': '2024-01-15'}
response = requests.get(url, headers=headers, params=params)
print(response.json())