▫️Date & Time Formatter

/format-date-time

This endpoint formats the provided date and times from the query parameters into the specified formats and returns them in the response.

Query Parameters

  • data: (string) Date in the format "DD/MM/YYYY".

  • ora: (string) Time in the format "HH:MM" (24-hour format).

  • ora2: (string) Another time in the format "HH:MM" (24-hour format).

Response

The response will contain a JSON object with the formatted date and times.

  • formattedDate: (string) Date in the format "YYYY-MM-DD".

  • formattedTime1: (string) Time 1 in the format "HH:MM".

  • formattedTime2: (string) Time 2 in the format "HH:MM".

Example

{
    "formattedDate": "2024-04-22",
    "formattedTime1": "09:30",
    "formattedTime2": "17:00"
}

Last updated