I am trying to get the current date in CST format in linux.
todaysDate=$(date +%Y-%m-%d-%H:%M:%S);
echo 'todaysDate: '${todaysDate};
Result: todaysDate: 2022-06-03-09:15:42
is giving me time in UTC. How can I get the time in CST instead, without changing the system time settings?
Thanks in advance