Click here to Skip to main content
15,921,622 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: shortening my code Pin
Nadroj24-Mar-04 17:52
Nadroj24-Mar-04 17:52 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 1:07
mveDave Kreskowiak25-Mar-04 1:07 
GeneralRe: shortening my code Pin
ibok2325-Mar-04 3:21
ibok2325-Mar-04 3:21 
GeneralRe: shortening my code Pin
Wayne Phipps25-Mar-04 4:10
Wayne Phipps25-Mar-04 4:10 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 4:11
mveDave Kreskowiak25-Mar-04 4:11 
GeneralRe: shortening my code Pin
ibok2325-Mar-04 4:25
ibok2325-Mar-04 4:25 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 4:37
mveDave Kreskowiak25-Mar-04 4:37 
GeneralRe: shortening my code Pin
Wayne Phipps25-Mar-04 4:49
Wayne Phipps25-Mar-04 4:49 
If your using VB.Net there is also the System.Timespan Namespace.

You could try something like:
<br />
        Dim d1 As DateTime = DateTime.Now<br />
        Dim d2 As DateTime = d1.AddMonths(2)<br />
<br />
        Dim ts As System.TimeSpan = d2.Subtract(d1)<br />
        Dim sDays As String = ts.Days.ToString()<br />




Regards

Wayne Phipps
____________

Time is the greatest teacher... unfortunately, it kills all of its students
LearnVisualStudio.Net

GeneralRe: shortening my code Pin
ibok2325-Mar-04 4:59
ibok2325-Mar-04 4:59 
GeneralData Bound ComboBox Formatting Pin
Karsten.Habay@skynet.be24-Mar-04 10:43
Karsten.Habay@skynet.be24-Mar-04 10:43 
GeneralCD Audio Extraction Pin
RobReid24-Mar-04 10:41
RobReid24-Mar-04 10:41 
GeneralRe: CD Audio Extraction Pin
Dave Kreskowiak24-Mar-04 11:05
mveDave Kreskowiak24-Mar-04 11:05 
GeneralRe: CD Audio Extraction Pin
RobReid24-Mar-04 11:33
RobReid24-Mar-04 11:33 
GeneralRe: CD Audio Extraction Pin
Dave Kreskowiak24-Mar-04 12:04
mveDave Kreskowiak24-Mar-04 12:04 
GeneralRe: CD Audio Extraction Pin
RobReid24-Mar-04 12:25
RobReid24-Mar-04 12:25 
QuestionHow to pull a field from a Dataset??? Pin
hounetdev24-Mar-04 9:36
hounetdev24-Mar-04 9:36 
AnswerRe: How to pull a field from a Dataset??? Pin
Pugzley24-Mar-04 17:46
Pugzley24-Mar-04 17:46 
AnswerRe: How to pull a field from a Dataset??? Pin
Pradeep C24-Mar-04 19:11
Pradeep C24-Mar-04 19:11 
GeneralRe: How to pull a field from a Dataset??? Pin
hounetdev25-Mar-04 7:12
hounetdev25-Mar-04 7:12 
GeneralCurrency Pin
ibok2324-Mar-04 6:33
ibok2324-Mar-04 6:33 
GeneralRe: Currency Pin
Steve S24-Mar-04 6:44
Steve S24-Mar-04 6:44 
GeneralRe: Currency Pin
ibok2324-Mar-04 6:57
ibok2324-Mar-04 6:57 
GeneralRe: Currency Pin
Dave Kreskowiak24-Mar-04 8:58
mveDave Kreskowiak24-Mar-04 8:58 
GeneralRe: Currency Pin
ibok2324-Mar-04 9:35
ibok2324-Mar-04 9:35 
GeneralRe: Currency Pin
Dave Kreskowiak24-Mar-04 9:40
mveDave Kreskowiak24-Mar-04 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.