I am trying to get the current day and put in a local
locals {
current_day = formatdate("DD/MM/YYYY", timestamp())
}
but a I get this error Call to unknown function; There is no function named "timestamp".
Is timestamp function not supported in HCL2 anymore?
Is there any other way to get the current day?