# dayofYear

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

**Description** : The dayOfYear function returns the number of the day in the year based on the date passed.

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

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

Here we go with simple scenario using the above function.

**Scenario** : In an agricultural monitoring system, farmers track the growth stages of crops and plan irrigation schedules based on the time of year. They utilize a function to determine the day of the year from weather data. For example, using the function with the date '2023-03-25' returns '84', indicating that it's the 84th day of the year, helping farmers make informed decisions about crop management.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/xzS2iteewXNdAq2Laak5ARquYDnsiueAviW2-DlUMvfAsapwmwYZPtEoay6j902KQeML2DjE3pjwPQOrPU7uCHwnAgElXoZJTZWNLMZxMWeBOcmPDdw0E3tHi-Yv1-cqFHg6m-TdJlHta3gcWuuIvE0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/NTdYnzYhETNcGbEWPRzh0lkphR4uMj3pUGuEm-31ACqBydnd1RXQ5Tkj1JEMIhqwCFxdJlprS1GBS3UXnvCfvKVKgXi-8drFz3-O9vQxWo3oPA3n_GCPudnguKmZSDqwV7KNcpNWrKLYU4sRFSpI-qk" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/3hsTBYGcC6vht6aVPm8Ym9O0zeng-XrqaL6eMSQolQN-THzGSM87EhX5DWqneVID407-YqLajMDdhfqtRkuR3y19TFrZsdH7yoJE7vWdBVCcUS2dyobtLPV0oazmob2ESqbDJGfBVzi1A6KQxBIJQek" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/O-4ZDyp3nYlEq14l378B8ht0doH03a-ezt4WNFXnJ2nOfXnH5PtV4rUZ0cYMc8AbjxFV1pmLXJs3czdVxLQc8UP57Pk0oXqhoq1r4taKgAFyK-2RxVWHK-cL6-4gsAIRWiXShAT0XiI0EGBtbSGXT5Y" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

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

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