Date Before

Compares two dates and determines whether Date 1 is before Date 2.

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 Date 1 is before Date 2; otherwise, returns False.

Copyright IBM Corp. 2003, 2004