(Get-Date $date.Date -day 1).AddMonths(1).AddMilliseconds(-1)
Example
PS C:\> $Date = Get-Date
>> (Get-Date $date.Date -day 1).AddMonths(1).AddMilliseconds(-1)


Sunday, March 31, 2019 11:59:59 PM