formatDateTodayFormat
Last updated
Last updated
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 :
Response Side :