# Utility

## Unix to date/time format

<mark style="color:green;">`POST`</mark> `https://api.fluxpoint.dev/utility/unix-date`

Get unix date/time format from timestamp number

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

#### Request Body

| Name   | Type   | Description                                                                        |
| ------ | ------ | ---------------------------------------------------------------------------------- |
| unix   | number |                                                                                    |
| format | String | <https://www.c-sharpcorner.com/blogs/date-and-time-format-in-c-sharp-programming1> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "success": true,
    "code": 200,
    "message": "",
    "content" "1/1/2023"
}
```

{% endtab %}
{% endtabs %}

## Discord id to date/time format

<mark style="color:green;">`POST`</mark> `https://api.fluxpoint.dev/utility/snowflake-date`

Get Discord date/time format from id number

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

#### Request Body

| Name      | Type   | Description                                                                        |
| --------- | ------ | ---------------------------------------------------------------------------------- |
| snowflake | number |                                                                                    |
| format    | String | <https://www.c-sharpcorner.com/blogs/date-and-time-format-in-c-sharp-programming1> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "success": true,
    "code": 200,
    "message": "",
    "content" "1/1/2023"
}
```

{% endtab %}
{% endtabs %}
