Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Number of days in a Month
Author:
Shanka
Website:
http://www.geocities.com/htmlremind
Submitted:
1/16/2006
Version:
VB6
Compatibility:
VB5, VB6
Category:
Date/Time
Views:
48120
To get number of days in a month use this one line of code.
Declarations:
'none
Code:
'For current month... MsgBox DateAdd("m", 1, Now) - Now 'For some other month (Example: June) Dim FirstDate As Date FirstDate = "01/06/2006" MsgBox DateAdd("m", 1, FirstDate) - FirstDate
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement