A1 = 12/30/2012
B1 = 12/30/2012
B2 = 1/5/2013
Can someone tell me why 01/05/2013 is not larger then 12/30/2012?
code
DateOne = Format(Range("A1"), "mm/dd/yyyy"
DateTwo = Format(Range("B1"), "mm/dd/yyyy"
DateThr = Format(Range("B2"), "mm/dd/yyyy"
Chk1 = DateOne <= DateTwo
Chk2 = DateThr > DateTwo
code
Results:
Chk1 = True
Chk2 = False
I have not worked with dates for a long time.
Please, can anyone help?
B1 = 12/30/2012
B2 = 1/5/2013
Can someone tell me why 01/05/2013 is not larger then 12/30/2012?
code
DateOne = Format(Range("A1"), "mm/dd/yyyy"
DateTwo = Format(Range("B1"), "mm/dd/yyyy"
DateThr = Format(Range("B2"), "mm/dd/yyyy"
Chk1 = DateOne <= DateTwo
Chk2 = DateThr > DateTwo
code
Results:
Chk1 = True
Chk2 = False
I have not worked with dates for a long time.
Please, can anyone help?