Add automatic strftime dumping

This adds automatic strftime dumping support, so that
either "CCYY-MM-DD"-like strings or "%Y-%m-%d"-like
strings can be supported through the same API.

@arjclark, please review.