No idea why anyone would want to make it that complicated, as pointed out before by others a simple Date1< Date2 will do or if you want to know ho wmuch difference then a simple call to datediff() will do.

There is no need for all the conversions, all it does is complicates the code and slows it down while also providing the possibilty of false results.