XLA routines: EE_LastDayOfMonth

EE_LastDayOfMonth takes a date and returns the last day of the month that the date is in.
Function EE_LastDayOfMonth(dt As Date) As Date 'Takes a date and returns the last day of the month 'http://excelexperts.com/xla-routines-eeLastDayOfMonth for updates on this function EE_LastDayOfMonth = DateAdd("d", -1, EE_FirstDayOfMonth(DateAdd("m", 1, dt))) End Function
»
- Nick's blog
- Login or register to post comments
- 3011 reads
Recent comments
6 years 9 weeks ago
6 years 47 weeks ago
7 years 7 weeks ago
7 years 9 weeks ago
7 years 11 weeks ago
7 years 16 weeks ago
7 years 24 weeks ago
7 years 25 weeks ago
7 years 25 weeks ago
7 years 25 weeks ago