Support for Hebrew/Arabic #1614
Replies: 1 comment 1 reply
-
Firstly, your way of constructing the Luxon uses const dtf = new Intl.DateTimeFormat('ar', {year: "numeric", month: "numeric", day: "numeric"});
console.log(dtf.format(new Date())); I am not sure if this is correct, but if you think it isn't, you'll have to take this up with whatever underlying platform (browser, Node JS, etc.) you are using). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've encountered some issues using toLocaleString and am wondering if I'm missing something.
DateTime.fromISO(new Date().toISOString()).setLocale(localeLang).toLocaleString();
Using the above snippet today (29th of March) if I pass localeLang 'ar' I get '29/3/2024'
I believe the correct format should be dd/MM/yyyy. Is there something I'm overlooking?
Thanks,
Colm
Beta Was this translation helpful? Give feedback.
All reactions