how to format date & time in javascript

how do i truncate the
'GMT+0100 (West Africa Standard Time)'
part from my
new Date
?

i know of the
get functions
, but i want the month to stay formatted as text and not numbers?

how do i achieve this, please?
Screenshot_2023-03-14_195141.png
Was this page helpful?