Currently, I am working with a ScrapeResult
mikroOrm entity. I have implemented the code
newScrapeResult.date = new Date()
to create a new Date object, resulting in the output 2022-07-17T17:07:24.494Z.
However, I require the date in the format yyyy-mm-dd hh mm ss
for saving it to the database. Is there a way to convert the existing format to the desired format?