Hi,
First of all, can you check the following document. This document says if return value equals zero, two string is same. If return value is negative, The instance (now.ToString(“ddMMyy”)) precedes the argument (IST based dumpdatetime). If positive, the instance follows the argument.
So, perhaps you should replace “ddMMyy” with “yyMMdd”. However please note that it depends requirement of your process.
Regards,