Hello,
here you go..
THe letter should be in your professor letterhead with full contact details.
Date:
To Whom It May Concern
This is to certify that XXX was PHD candidate as a full time Research Assistant (40 hrs/week) in my lab at XXX University, city, country from DD-MM-YYY to...