This message was edited by DrMarten at 2007-1-7 14:21:15
: hello,
:
---------------Edited text.-----------------------------------
This my college project i want to create a database of students birthday database i want to display only dates of the month, if in the year the month only has 31 days it wants to display from 1-31 or if it is leap year it should display 29 days in feb. like this for all months.
--------------------------------------------------------------
Hi,
Const July As Integer = 7
Const Feb As Integer = 2
' daysInJuly gets 31.
Dim daysInJuly As Integer = System.DateTime.DaysInMonth(2001, July)
' daysInFeb gets 28 because the year 1998 was not a leap year.
Dim daysInFeb As Integer = System.DateTime.DaysInMonth(1998, Feb)
' daysInFebLeap gets 29 because the year 1996 was a leap year.
Dim daysInFebLeap As Integer = System.DateTime.DaysInMonth(1996, Feb)
Regards,
Dr M.