Javascript – How to convert Date object without hours stamp to desired hours stamp
I want to convert the "from" date object starting from 00:00:01 and "to" date object ending with 23:59:59. How do i do that. Here's my code. let from = new Date(req.params.from); let to = new Date(req.params.to); console.log('from: ',from,'to: ',to) result…