Skip to content

Locale currency and date format #3252

Answered by MarkBaker
extraric asked this question in Q&A
Discussion options

You must be logged in to vote

The Settings locale is used for the calculation engine language, but there is no explicit locale setting for currency or date formatting in PhpSpreadsheet. None of the date/currency formatting is locale-aware; and has to be set manually; so you would need to set it for all cells that needed it, but you can set styles (including number formatting) for a range of cells (e.g. A2:A120), or a row/column range (e.g. 2:5 or A:B).

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@extraric
Comment options

Answer selected by extraric
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@idovdw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants