Compares date time values.
- Parameters:
-
| val1 | Is the value of the first object. |
| val2 | Is the value of the second object. |
- Returns:
- Returns a positive value if val1 is greater than val2, negative if val1 is smaller than val2 or zero if both val1 and val2 are equal.