How Do You Check Difference Between Datetime String Coming

How Do You Check Difference Between Datetime String Coming