Insert date with the UK style?

When I put a date into my DB, it doesn’t work when I use the UK date syntax:

new Date(21/10/2022) 

It only works with the US syntax:

new Date(10/21/2022)

Anyway to change this?