Skip to main content
Version: 2024.4

Date Formatter

Utilizes the PHP date formatter.

Configuration

date_formatter_config.pngdate_formatter_config.pngdate_formatter_config.png

  • Label: The name for the field to be used in the query .
  • Date Format: The format you want to use. For formatting options see PHP Date Format.

Example

date_formatter_example.pngdate_formatter_example.pngdate_formatter_example.png

Request:

{
getCar(id: 82) {
id,
modificationDate,
FormattedModificationDate
}
}

Response:

{
"data": {
"getCar": {
"id": "82",
"modificationDate": 1732709167,
"FormattedModificationDate": "Wednesday 27th of November 2024 12:06:07"
}
}
}