Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

is there anyway to substract two dates..for e.g

 

dim dt as date

 

dt.adddays(1).substract(date.now)

 

and to get a days result...i mean if dt.adddays(1) will result 13.9.04

so after the substract i want to get : 1 day.

and not the date.

any idea how?

 

10x in advance.

Posted
Use a TimeSpan like the example I showed in your other thread

The timespan has a .Days property that will be the number of days.

 

yo 10x again!!!!

bahh...looks like i need to get used to MSDN! i hate msdn since its very coarse

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...