Date Equals

Compares two dates and determines whether they are equal.

Inputs

Date 1
A String object that represents the first date to compare.

Date 1 format
A String object that represents the format of Date 1.

Date 2
A String object that represents the second date in the comparison.

Date 2 format
A String object that represents the format of Date 2.

Output

Returns True if both dates are equal; otherwise, returns False.

Copyright IBM Corp. 2003, 2004