Skip to main content
Version: 2.2.3

Fetches the current date from the WEB server

To get the current date in an external application, you can use the getDateToday method. This method does not require any parameters and can be used simply.

Below is an example for getting the current date:

$value = $workflow_api->getDateToday();

The value returned by the method will be a string in the "YYYY-MM-DD" format representing the current date.

caution

It is important to highlight that the current date is based on the time zone configured on the WEB server where the script is running. Therefore, if you need to use a specific date, we recommended checking and setting the time zone correctly before getting the current date.