Start date after Ending date

Start date after Ending date

Old forum URL: forums.lhotka.net/forums/t/3969.aspx


Wal972 posted on Friday, November 30, 2007

Hi

I have a date checker which is the same as the one from Project Tracker.

A.       Starting:   1-Nov-07   Ending:    30-Nov-07        Result:   Valid   (Correct)

B.        Starting:   30-Nov-07   Ending:   1-Nov-07        Result:   InValid (Correct)

C.      Starting:      30-Nov-07   Ending:   1-Dec-07       Result:   INVALID    (WRONG)

Why ?

Any assistance / explanation would be creatly appreciated

Thanks

Ellie

RockfordLhotka replied on Monday, December 03, 2007

Are you sure it is the same code? I only ask because I just tried those dates in ProjectTracker and they worked as expected.

richardb replied on Thursday, December 06, 2007

Is it the U.S. / U.K. date switching gotcha?

Test C might think that 01-Dec-07 date is in fact 12-Jan-07 and hence the comparision is invalid.

Richard B.

Copyright (c) Marimer LLC