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
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
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.