How can I change a date to the the last date of the given month? For example, if a user inputs 3/28/18 I want to change that to 3/31/18
The only idea I could come up with was to create a data table with each month and corresponding last day and looking up off of that table. Seems messy though. Must be a simpler way. Any ideas?