That's because $todayDate is empty, system doesn't capture the output of the command.
But a better way to get the current is the built-in function localtime.
In reply to Re: storing date into variable
by moritz
in thread storing date into variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |