Skip to main content

Current date

  • What is it? This formula returns the current date. It will be in a format based on the LOCALE constant, assuming the PHP Internationalisation extension is installed. If this is not installed, the format will be UK, e.g. dd/mm/yyyy.

Inputs​

This formula requires no inputs.

Return values​

The current date, in either the format specified by the LOCALE constant, or the default UK format.

Formula Logic​

  1. This formula obtains a new DateTime object, representing the current date.

  2. The date object is output in either the format specified by the LOCALE constant, or the default UK format.