Subject: calculate date duration in asp.cet
Posted By: rjkulkarni2001 Post Date: 1/5/2006 11:28:25 PM
hello,
i want to find the duration between two dates, and it should be in format as given below,
date1:12/12/2005  dd/mm/yyyy format
date2 :12/01/2006
then duration should be difference of two dates
and format like
0 years,1 month 0 days

in asp.net with vb.net code behind
thank u


Reply By: g2000 Reply Date: 1/6/2006 9:23:47 AM
Did you try Timespan?

Reply By: rjkulkarni2001 Reply Date: 1/13/2006 7:35:09 AM
yes but month and years will be correct but there is difference in days



Go to topic 37566

Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389
Return to index page 388
Return to index page 387