Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include argument for date format in add_formatted_worksheet #22

Open
PetterHopp opened this issue Sep 18, 2023 · 0 comments
Open

Include argument for date format in add_formatted_worksheet #22

PetterHopp opened this issue Sep 18, 2023 · 0 comments
Assignees

Comments

@PetterHopp
Copy link
Member

In openxlsx from version ###, the standard date format is set to American, i.e. mm.dd.YYYY.
Problemet er OPENXLSX som er satt opp med amerikanske format: «mm.dd.yyyy»
Problemet oppstod ved eller annen oppdatering:
ycphs/openxlsx#362

Løsningen er å sette formatet slik man ønsker det:
https://ycphs.github.io/openxlsx/articles/Introduction.html

Du finner formatet slik:

openxlsx_getOp("dateFormat", "date")

Og endrer slik

options("openxlsx.dateFormat" = "dd/mm/yyyy")

Suggested solution:
Make an argument for setting date format.
Set default format to Windows format, but needs a way of retrieving the Windows format. Alternatively, set default format to Norwegian format.

@PetterHopp PetterHopp self-assigned this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant