CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Posts
    178

    calculate month in dateTime

    how can i get the month difference between 2 parameters of DateTime type?
    also - is it possible to know how many days are in a specific month? if yes, how?
    thanks in advaned.

  2. #2
    Join Date
    May 2005
    Posts
    178

    Re: calculate month in dateTime

    ok i just saw the dataDiff function...
    but i still dont know the answer for the second question...

  3. #3
    Join Date
    Dec 2002
    Posts
    55

    Re: calculate month in dateTime

    Code:
    Const Feb As Integer = 2
    Dim daysInFebLeap As Integer = System.DateTime.DaysInMonth(1996, Feb)
    Last edited by Relentless; May 14th, 2006 at 01:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured