I want to pick a date from the DateTimePicker and display that date in a label.
like...
label1.text = datetimepicker1.value...
but actually i want to add 5 more days to the date which i pick from DateTimePicker.
For example if i pick 24-04-2008 ...
lable1 shud have 29-04-2008...DateTimePicker Control in VB.NET?
Actually you are in luck, this is very easy to do in VB.NET.
Just use this code:
Me.Label1.Text = Me.DateTimePicker1.Value. AddDays(5.0).ToShortDateString
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment