You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create_date_de2 = (new Date()).toLocaleDateString('de-DE',options);
In online javascript, if I run:
const options = { year: 'numeric', month: 'long', day: 'numeric' };
console.log((new Date()).toLocaleDateString('de-DE',options))
it is working fine by providing: 15. Januar 2024
Why rhino is not supporting locale? am I missing anything here? do I need to do any configuration ? Mine is windows machine German language pack also installed.
Appriciate any help on this.
Thanks
Ashok.
The text was updated successfully, but these errors were encountered:
I am using rhino 1.7.14 (latest version) in my java application as JS engine
The below code is returing: 'January 15, 2024' (is the value of create_date_de2)
options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
};
create_date_de2 = (new Date()).toLocaleDateString('de-DE',options);
In online javascript, if I run:
const options = { year: 'numeric', month: 'long', day: 'numeric' };
console.log((new Date()).toLocaleDateString('de-DE',options))
it is working fine by providing: 15. Januar 2024
Why rhino is not supporting locale? am I missing anything here? do I need to do any configuration ? Mine is windows machine German language pack also installed.
Appriciate any help on this.
Thanks
Ashok.
The text was updated successfully, but these errors were encountered: