vb.net - How to determine if a date is the last day of the month? -


can me on how determine if given date last date or day in month?

for example have 2 dates, 1 2013-01-27 , other 1 2013-02-28. need determine if date last day. 1 must display 2013-02-28 because last day of month in february while 2013-01-27 not last day of month in january.

what condition can use?

thanks in advance.

use this:

function islastday(byval mydate date) boolean     return mydate.day = date.daysinmonth(mydate.year, mydate.month) end function 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -