ecbuild_get_date

Set the CMake variable ${DATE} to the current date in the form YYYY.mm.DD.

ecbuild_get_date( DATE )

ecbuild_get_timestamp

Set the CMake variable ${TIMESTAMP} to the current date and time in the form YYYYmmDDHHMMSS.

ecbuild_get_timestamp( TIMESTAMP )