date Sat Oct 16 11:42:42 PDT 2021 todays_epoch=`date "+%s"` echo $todays_epoch 1634408601 echo $cert_expiration Oct 4 2022 cert_expiration_epoch=`date "+%s" <<< $cert_expiration` echo $cert_expiration_epoch 1634408601 < ------ This is wrong and it looks like it's just doing the date command without redirecting the output into the variable cert_expiration_epoch.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)