how to add time and date in Static Text

hello how to add date and time in a program…

Static text? Are you using a quite old version of Xojo???

And if you look in the documentation then it is written in there.

Dim CurrentDate as new Date StaticText1.text = Str(CurrentDate)

thanks for your answer i already solved it