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

# formatDateTodayFormat

formatDateTodayFormat() function in 200OK is a standard function which is used to returns date in specified format.

**Description** : The formatDate function returns a formatted date based on the input date and specified format.

**Syntax** : fx\_formatDate(today,format=dd-MM-YYYY )

**Example** : when invoked as fx\_formatDate(today, format=dd-MM-YYYY), it returns the response as "17-10-2023", indicating the date in the format day-month-year.

Here we go with simple scenario using the above function.

**Scenario** : In an event scheduling application, event organizers need to display event dates in a specific format for attendees. They utilize a function to format the current date based on the desired format specified by the event settings. For example, using the function with the format 'dd-MM-YYYY' returns '17-10-2023', indicating the current date in the format day-month-year, ensuring consistency in event date presentation.

**Request Side** :&#x20;

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

**Response Side** :&#x20;

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

<figure><img src="https://lh7-us.googleusercontent.com/tG5JvD0PtDu5kYFmIaJU-PLXOAkBeEmRqETDsgaJXYVSOIBzl37s5fyMOCEaGdD3eYG-OCP8zwVMf83pGps8Q9ooCr6FXjDPLIpAR3ZD1HmaHiWubxc-D4aYNObsAzA_AKiATCJmQo2HEfMOir-WUJg" alt=""><figcaption></figcaption></figure>
