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.
--
You received this message because you are subscribed to the Google Groups "mozilla-rhino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-rhin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mozilla-rhino/e4893fe2-5d28-4d2e-85fd-54edf83835f4n%40googlegroups.com.
--