time is no problem but the date still keeps the format of mm/dd/yyyy despite the fact that i am using nl-NL
as a matter of fact i can try any locale but the date keeps the same format.
var date = new Date().toLocaleString('nl-NL')
"3/7/2020, 3:47:30 PM"
what would be the code(if it exists) to get this output(without using nodes)
"7/3/2020, 15:47:30"
The Locale feature in JavaScript is dependent on a set of locale files and Node.JS doesn't load them all by default I don't think (they are quite large). So possibly, you are hitting that problem.
In any case, personally I find the most reliable format to be "YYYY-MM-DD HH:mm:ss" which is an ISO format that also sorts correctly as a string. I always set my desktop/laptop devices, Excel, etc. to use that format. It is far less confusing.
As Paul says, you could also use the moment node which can also do timezone changes and simple date math as well. It uses MomentJS and so has it's own timezone/locale data.
Like many things, it is started in my development code - creating an API that will return the full list or a partial list based on selecting a country.
But nobody else - nor yourself - have asked so it has not been on the priority list.