cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mayuppe953
Level 3

compare decimal numbers (not for versions)

Hello, I need to compare 2 dates in this format: YYYYMM.DD in InstallScript. First I tried comparing it just as real number, but there is no data type that supports real number.

At this point, how can I use StrGetTokens to take numbers before decimal and after decimal? Would VersionCompare work with this particular format?

Or any other suggestions?

Thanks.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

If the date strings will always contain leading zeroes ("2010.0101", never "2010.101"), can you just use string comparison with < or StrCompare?
0 Kudos
mayuppe953
Level 3

StrCompare worked, thank you!
0 Kudos