Trouble formatting date in ISO 8601 format

"Steve Hoelzer" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I want to display post dates in ISO 8601 format, like this: 2007-08-20.

In my story template, I tried "$yr-$mo_num-$da", but that doesn't
work. All I get out is the day number (20).

If I put spaces around the dashes, "$yr - $mo_num - $da", it works
fine -- except that I have spaces around the dashes in the output:
2007 - 08 - 20.

What's going on here? Is there a way to generate the date without
spaces around the dashes?

Thanks,
Steve

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.