Handling nulls and formatting datetime values correctly. Refactored method to create values, with specs for various column types.