I Have a problem, i want to make a function that check if a month is 31 or 30 or 29 day, how can i make that function??
or is there any built in function i vb that can make it simpler??
i use this kind of code
if isdate("31/" & month.text & "/" & year.text) then
dayofmonth=31
elseif isdate("30/" & month.text & "/" & year.text) then dayofmonth=30
elseif isdate("29/" & month.text & "/" & year.text) then dayofmonth=29
elseif isdate("28/" & month.text & "/" & year.text) then dayofmonth=28
or is there any built in function i vb that can make it simpler??
i use this kind of code
if isdate("31/" & month.text & "/" & year.text) then
dayofmonth=31
elseif isdate("30/" & month.text & "/" & year.text) then dayofmonth=30
elseif isdate("29/" & month.text & "/" & year.text) then dayofmonth=29
elseif isdate("28/" & month.text & "/" & year.text) then dayofmonth=28
Comment