lparam oFoxCode oFoxCode.ValueType="V" lnHours=SET("Hours") set hours to 24 lcSetDate=set("date") set century on set date ymd lcReturn= "*["+ttoc(datetime())+"] dragan - " set hours to lnHours set date to (lcSetDate) return lcReturnAs you see, most of it is to make sure the datetime is in correct format and to restore the settings. The rest is actually simple.