how to set the time, using this code doesnt work;

label1.caption = datetime.now
label2.caption = time