Using Intl datetimeformat

I get date data from backend with format YYYY/MM/DD and want to format date using Intl.DateTimeFormat to be DD/MM/YYYY. So I write like this: data = new Intl.DateTimeFormat(…), what I should write in blank (…) guys? I’m just learn vuejs 2

Hi @students
you can try this : data = new Intl.DateTimeFormat(‘en-GB’).format(date)
Hope this helps

Thank you for your suggest. I’ve try it, but it doesn’t work. Anyway, the problem already solved with using .split("-").reverse().join("-")