> 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/day.md).

# day

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

**Description** : The day function returns the day of the month based on the date passed.

**Syntax** : fx\_day(date)

**Example** : fx\_day(2023-03-25) returns 25 as the response, indicating that it's the 25th day of the month.

Here we go with simple scenario using the above function.

**Scenario** :   In a payroll management system, administrators need to track employee attendance and calculate wages based on the number of days worked. They utilize a function to extract the day of the month from the attendance records. For example, using the function with the date '2023-03-25' returns '25', indicating that the employee worked on the 25th day of the month.&#x20;

<br>

\
**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/IEDJ5wAPmz5lHNVd5Mxb7ICFMbd1JOCnH8EAgl57v3IleeAscNHAjnSR7lLhSq7QTRuF2g5qlZlIXYy9xX2eidNaVTlvWd91a9lhSL3QSTGoVJHeDG7fsu1MPxmmgL93PNNgF8OViNJ-4lKSRInU0ew" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://lh7-us.googleusercontent.com/nUlSrK3pAID-YWXZoO63B9M1ERL7ovdguzet3vfurlsAdMu54bobruDcRFBqaxO5ZiXUTWHFTJIGdcP0e512pFOTLy57aPZnWzdwQOPH8ubuPcLlxXq4JlODnr2ZeIvpzbSc9fHPT56QkNOidYqPBfw" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/O82sls9BeKhbwT1ee2aU4E-oLPcwvjK4pICWwOKZvR_9n13RHvKtxyvbxqQOh_3m3mib68DYHHvYvQW23_2_NNknBZdsevnFAVYVxslVnBfrfxbwCYkaWCSpS38iDxzVBUodpJfXLw2R9pwArisFf3o" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/ak-9CroLXeCWH3V4KW_WJpeSwIt6LFioBa7Z4WS-t3AVmpOAGsl5KeRzQPyyDfWo58-M68QTeHAPFGpbBFlhhOYdi-32bMi-TOE4qwAGdeZabL2sNua4pYYqv0ZD7jjEPFH3MFEpnx3mggJB6-JT1NA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/0ioK3hiVi-TeVSFI5__XLtpbPzavi-R2N1JfPLjCQqMvyouO9ZtNGIph6JJrtRdslEdztZJZmxXcWm4lNRsB3aaeJwMuUWuoo_GCINJ-x_I2SN8GCYwDcMb0Xxhg8J1OlmNmCcLppWwjlpP_J6ds5GA" alt=""><figcaption></figcaption></figure>
