Fixed a few minor issues
Fix for formatting dateTime attributes in diffs.
Refactored the validate numbers functions