Can you just edit the codes in the thread and ill understand?
Just load the player's data including the RegisteredOn or however that field of yours is named and store it to your variable using cache_get_row function (it's pretty much the same way you load any data).