system only returns success or failure, not the results of the actual command. As others have pointed out, if you really want to shell out you could have used backticks instead. Having said that, you really don't need to use the shell at all. localtime will give you exactly what you need.
In reply to Re: capture system date to $date
by vek
in thread capture system date to $date
by JJB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |