> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/date-and-time/todatetimeunix.md).

# toDateTimeUnix

toDateTimeUnix() function is the Standard function available in 200OK.

**Description** : The toDateTime function converts the input Unix timestamp into the specified format.

**Syntax** : fx\_toDateTime(date in unix format,unix)

**Example** : fx\_toDateTime(1510654220787,unix) returns "2017-11-14T10:10:20.787Z", representing the time in Unix format.

\
Here we go with simple scenario using the above function.

**Scenario** : For efficient data analysis, users convert Unix timestamps into human-readable format for clear interpretation. This ensures consistency and readability across analyses. For instance, converting Unix timestamp '1510654220787' into 'yyyy-MM-ddTHH:mm:ss.000Z' format yields '2017-11-14T10:10:20.787Z'.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/hbDDWGkImNQw5bMZKvhsslH9VbnlYAvRakW9cGxpzp-xKLt2A9sWdTgSoVq3CFbJ9lgwprSajqWIhFfUikYCecNQ6OK8lXBkn4vCmooLPwap6Km6gvk2rFcSP1Do-kooTjOCr4Vz7AIW8sQA621kaRY" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/8d0BkM8rFGj-sWvNlzlp6GzJWJCtoHycwH1nykfvzha0RNzcKUxy-g2eMPHmXxln5cu7lhlT--aozHSaMKwo-5wVNnSa2eHhOAScpOTFyQYtiPzzwLhfP03SqProMRi9J6eGz6AFCtjd3TcuNQwevFs" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/uHtu6BH8bypu8IfeI7pvogRN1LycPwssbOWrhThOl1bZXPGS24uOkh729djIivPqOCu8YbiQnXSBqjf3Vm93dGhF-C0bPRi7HwlJ1Z6qtlNZfszLVPrf3rk3dCKqdolFIn7py0-Cn2ntCaQmStwnKbA" alt=""><figcaption></figcaption></figure>
