how do set date and time values to text box
Printable View
how do set date and time values to text box
Text1.Text = Format(Now, "Short date") & " " & Format(Now, "short Time")
say text1 is the text object then
text1.text = format(now(),"dd-mmm-yyyy") & format(now(),"HH:MM")
There are different format styles you can use -
"dd-mm-yyyy" or "mm-dd-yyyy" or "dd-mmmm-yyyy" to get different effect.
Santulan