D
Danny Ni
Hi,
I have a TextBox in an aspx form to allow user to enter a date. Say the
TextBox name is txtDate. I have 2 questions:
(1)How do I put today's date as default value?
I tried: txtDate.Text = DateTime.Today.ToString();
I got 4/9/2004 12:00:00 AM, but I don't want the hour part.
(2)How do I do a client side validation that the value user enter is valid?
Thanks in Advance
I have a TextBox in an aspx form to allow user to enter a date. Say the
TextBox name is txtDate. I have 2 questions:
(1)How do I put today's date as default value?
I tried: txtDate.Text = DateTime.Today.ToString();
I got 4/9/2004 12:00:00 AM, but I don't want the hour part.
(2)How do I do a client side validation that the value user enter is valid?
Thanks in Advance