VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Function to get the days of the Month ,given the Month and Year

by Pavan Chelpati (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 7th November 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Function to get the days of the Month ,given the Month and Year

API Declarations





Rate Function to get the days of the Month ,given the Month and Year



NoOfDays = GetNoOfDays(strMonth,strYear)

'*** Function to get the no of days
Public Function GetNoOfDays(ByVal strMonth as String, _
                            ByVal strYear as String)
GetNoOfDays = DatePart("d",DateSerial(CInt(strYear),CInt(strMonth) + 1, 1) -  1)

End Function

Download this snippet    Add to My Saved Code

Function to get the days of the Month ,given the Month and Year Comments

No comments have been posted about Function to get the days of the Month ,given the Month and Year. Why not be the first to post a comment about Function to get the days of the Month ,given the Month and Year.

Post your comment

Subject:
Message:
0/1000 characters