#bapipanda_39339
1 messages · Page 1 of 1 (latest)
Hi, let me help you with this.
Hi any one help me to how to change date format MM ,DD,YY to DD,MM,YYYY in payment receipt pdf .. see below mark pdf
Could you please share the PaymentIntent ID pi_xxx?
It depends on the preferred_locales of the Customer: https://stripe.com/docs/api/customers/update#update_customer-preferred_locales
But you can't freely edit the format
OK let me check it
can you give example how to set preferred_locales for individual customer
@sullen walrus
preferred_locales: ['de'] for example
Ok that mean if create any PaymentIntent through this [de] customer then date format will show according to [de] in the payment receipt
@sullen walrus am i right?
Yes. I am not sure what locale will give you the exact format you're looking for. I assume you're using "au" so the Oct 20, 2023 is the default.
In general I would recommend you to stick to your local format.
Ok sure ....
i will try with this format ..
@sullen walrus which locale options are available? Would would we use "en-au" or something else? Fun fact, in Australia the correct format would be 30 Oct, 2023 and not what you've stated as the default for au
I don't know what's the default for Australia. Formats like en-AU are also supported.
Happy to help.