Consolidate duplicate to_formatted_s method

I found some duplicate code in the Date and Time core extensions and thought it would be easy enough to consolidate.  I followed the convention already used for common Date and Time methods in the core extensions by putting the module in the date_and_time folder/namespace.

I'm not so sure how I feel about the end result, though, and welcome any feedback and suggestions.