ToLongTimeString() is for displaying time.
You should use ToLongDateString() and ToShortDateString() if you want
the *DATE* to be displayed.
Regards,
Bill.
-----------------------------------------------------------------------------------------
http://www.infosnap.eu
InfoSnap · the powerful, all-purpose information and knowledge-base manager.
-----------------------------------------------------------------------------------------
Carlos wrote:
Hi all,
I just tried to handle the SelectionChanged event using a calendar
control to popoulate a textbox. I got "12:00:00 AM" instead of the date..
i.e. "11/1/2006" my snippet is
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Calendar1.SelectionChanged
TxtEventDate.Text = Calendar1.SelectedDate.ToLongTimeString()
End Sub
Thanks in advance,
Carlos