Dynamic Text box fetching the current date

mytext.text = Date();

it doesn’t work.