I am new to UI (User Interface) coding and I have date from json
as "2021-02-28 00:00:00". But while writing to the xlsx I don't want the date in string form. And this is what I have tried.
variable = new Date("2021-02-28 00:00:00")
Which give the date object as below
Sun Feb 28 2021 00:00:00 GMT+0530 (India Standard Time)
But I want the date to be in below format [should be still a date object not a string]
28 Feb 2021 00:00:00