FrontEnd.ro logo
Use The Platform #2

const today = new Date();
const salary = 2000;

const dateFormatter = Intl.DateTimeFormat('ro-RO', {
  dateStyle: 'short',
  timeStyle: 'short'
});
const currencyFormatter = Intl.NumberFormat('ro-RO', {
  style: 'currency',
  currency: 'RON'
});

console.log(dateFormatter.format(today));
// 30.10.2022, 09:12

console.log(currencyFormatter.format(salary));
// 2.000,00 RON