如何在不使用datetimepicker的情况下在文本框中设置日期值
问题描述:
是否有可能在没有
的文本框中输入日期值
通过使用vb.net编码使用datetimepicker
is there any possibility to enter the date value in the textbox without
using datetimepicker by using vb.net coding
答
您的意思是:
You mean something like:
TextBox1.Text = Format(Date.Now, "dd-MM-yyyy")
textbox1.text = date.now(或)textbox1.text = formate(cdate(now),"HH:MM:SS").tostring
textbox1.text=date.now (or) textbox1.text=formate(cdate(now),"HH:MM:SS").tostring