ChatGPT In Javascript, given a date object, how do we convert it the end of the month? The given answer seems messed up the order of the code, we should set the month to the next month first then setDate(0), which gives the last date of the month.