fogofogo
07-18-2007, 05:18 PM
Hello,
I was wondering how to pick a date from the calendar tool, and then have it populate a text box?
I am able to get it to display in a label using the following code
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
date.Text = Calendar1.SelectedDate.ToString();
}
another question - the date is displayed in the following format...
14/07/2007 00:00:00 - anyone know how I can drop the time (00:00:00)?
Thanks for your help
John
I was wondering how to pick a date from the calendar tool, and then have it populate a text box?
I am able to get it to display in a label using the following code
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
date.Text = Calendar1.SelectedDate.ToString();
}
another question - the date is displayed in the following format...
14/07/2007 00:00:00 - anyone know how I can drop the time (00:00:00)?
Thanks for your help
John