Navigation:  PHP API (Workflow) >

Searching for the current date and time

Previous  Top  Next

It is also possible to search for the current date and time. For that, use the following methods: getDateToday and getTimeNow. Methods do not have parameters.

 

Example to search the current date:

$value = $workflow_api->getDateToday();

Return example: 2019-07-31

 

Example to search the current time:

$value = $workflow_api->getTimeNow();

Return example: 20:00:00