Date formatting in JavaScript

I have been corresponding with Sven Tofte about a piece he published about Date formatting in Javascript. I was really pleased to see his code since I am planning on upgrading my Dreamweaver macro and streamline my RSS item creation. I wanted to use a RFC822 date and a custom date. I guess I could of written it myself but I think he did a much better job at it. There was a minor correction to his code but it looks solid and straightforward for almost all platforms.