Server is up to date message

I was playing ER:LC and I saw this “Server is up to date” message, and when it isn’t up to date it turns red and says it isn’t up to date.

image

I was wondering how to do this? I know you can get the date the game was updated with

MarketplaceService:GetProductInfo(game.PlaceId).Updated -- returns date it was updated

And you can get the current version with

game.PlaceVersion -- returns version number

But I didn’t know how you could compare them since one gives a date an another a version number.