JerrySievert/node-date-utils — pull request #18 by rvagg (2012-02-15 01:24:28+00:00)
Title: fixed toFormat() to not replace replacements

Hey Jerry, trying to fix a bug here, `toFormat()` is broken because calling it on a month starting with 'M' will have the first character of the month name changed to the month number:

```js
new Date(2012, 2, 1).toFormat('MMM'); // '3ar'
```

So I've taken the approach of building a return array of strings where strings already replaced are inserted as non-strings (arrays were the easiest), then rebuilding the return string at the end.

I hope I've done your great lib justice.

Cheers