JavaScript intl.datetimeformat Brasil

new Intl.DateTimeFormat('pt-BR', options)
DevPedrada