Refactored how formating is handled.

DateTime now split into new class.