It already does teh 5day 4hours etc. just remove the $2 portion of the followin gline if you don't want it to show the date.

Code:
.msg $chan Welcome Back $nick $+ . Last time you joined $chan was on $2 $+ , $duration($calc($ctime - $3)) ago $+ . (Your total visits: %t $+ )