We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,055 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to Get Difference between frommonth with fromyear compared to tomonth w

How to Get Difference between frommonth with fromyear compared to tomonth with toyear....
For instance one has work experience with frommonth March and fromyear 2006 and tomonth June and fromyear 2007 duration should be 1 year and 3 months...Also there would be multiple work experience with various durations as mentioned... Then all must be summed together...I want to show in months if less than one year

2
Contributors
1
Reply
1 Hour
Discussion Span
2 Months Ago
Last Updated
6
Views
korathualex
Light Poster
41 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Assumming VB.Net do something like...
Dim myTimespan As TimeSpan = Date1 - Date1, or
Dim myTimeSpan As TimeSpan = Date.Now.Subtract(myStartTime)

then you can...

if myTimeSpan.TotalDays > n then do something

cxzei
Newbie Poster
4 posts since Sep 2008
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1144 seconds using 2.64MB