cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the Date and Currency Formats Based on Country

Former Member
0 Kudos


Hi Friends,

I am designing the one Global Form it will use for all countries.

in that Form i want to print the date and currnecy Formats based on country.

Like

For US i want print the date and Currency Like This.

Date -  MM/DD/YYYY

Curremcy - XX,XXX,XX.XX

For DE i want print the date and Currency Like This.

Date -  DD.MM.YYYY

Curremcy - XX.XXX.XX,XX

Please suggest how i can control these things through Java Script or Formcalc....

Accepted Solutions (0)

Answers (1)

Answers (1)

nsikka
Active Participant
0 Kudos

Hi,

it is while calling the form ..

You can pass country as 'US' for united states and likewise for others

Thanks,

Nitin

Former Member
0 Kudos

Hi Nitin,

thanks For ur reply,

i tried with this solution,

But it is displaying the default Format like bellow formats.

For short - mm/dd/yy

For Medium - mmm dd , yyyy

For Long     - thursday ,mmm dd , yyyy

it was prinitng in above mentioned format,

but here i want to print my own format for USA like MM/DD/YYYY.

nsikka
Active Participant
0 Kudos

- if you have a specific format Then, instead you can use patterns...

Thanks,

Nitin

Former Member
0 Kudos

If i use the patterns for all the countries it will print same pettern only...... 

Former Member
0 Kudos

but here date format has to be changed based on country.

nsikka
Active Participant
0 Kudos

I think along with passing that form parameter you have to change Locale ;

Change to user system locale.

I think it should help.

THanks,

Nitin