Click here to Skip to main content
15,905,913 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to do create Date and time in DropDownList
then,
calender date click show the today date and current system time in DropDownList
Posted
Comments
Herman<T>.Instance 15-Feb-12 6:23am    
ajax or asp.net calender control?
DropDownList.Items.Add(new ListItem(calendar.SelectedDate.ToString()));

1 solution

What exactly You want to know , To add current date in dropdown box or when clicking a date from calender control the selected date to be added in drop down or something else?



TO just Insert current Time


drpdwn.Items.Add(Date.Now.ToString)


from a Calender Control


Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged

drpdwn.Items.Add(DateTimePicker1.Text.ToString)
End Sub
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900