TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohamad guntur
NA
40
40.5k
Calculate days using timespan between 2 Datetimepicker
Oct 28 2012 10:48 PM
I use this code and nothing works out :((
Dim FirstDate As Date
Dim SecondDate As Date
Dim ts As TimeSpan
Dim diff As Integer
FirstDate = DateTimePicker1.Value
SecondDate = DateTimePicker2.Value
ts = SecondDate - FirstDate
If txtTOTAL_DAYS.Text = "" Then
diff = ts.Days
txtTOTAL_DAYS.Text = diff.ToString()
End If
End Sub
how to calculate timespan between 2 Datetimepicker? after the user select those datetimepicker, then the txtTOTAL_DAYS show automatically the total days between 2 datetimepicker.
Saturday and Sunday doesn't need to count.
Reply
Answers (
0
)
c#
Merkle Hellman Algorithm