Like this? (paste into a mIRC window and enter)

Code:
//var %test = Day: $day Date: $date Time: $time | echo -ag %test