hi
in my web application i have a textbox which contains a date
i need to send this date to the database
how i did that was like follows (In C#)
DateTime StartDate;
StartDate=DateTime.Parse(txtStartDate.Text).Date;
my problem is this is passing '2/10/2004 12:00:00 AM'
but i donot want to pass this whole thing bcos my sql storedprocedure doesn't work if i pass above whole thing.
i need to pass one the '2/10/2004' part
does any body have an idea
thank you very much in advance
in my web application i have a textbox which contains a date
i need to send this date to the database
how i did that was like follows (In C#)
DateTime StartDate;
StartDate=DateTime.Parse(txtStartDate.Text).Date;
my problem is this is passing '2/10/2004 12:00:00 AM'
but i donot want to pass this whole thing bcos my sql storedprocedure doesn't work if i pass above whole thing.
i need to pass one the '2/10/2004' part
does any body have an idea
thank you very much in advance