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

Cell format not applied. #182

Open
serfend opened this issue Aug 9, 2023 · 5 comments
Open

Cell format not applied. #182

serfend opened this issue Aug 9, 2023 · 5 comments

Comments

@serfend
Copy link

serfend commented Aug 9, 2023

while put value 2023-08-09 14:44:32 into template ${datetime} on which cell format YY-MM-DD,
you will get 2023-08-09 14:44:32 instead of 2023-08-09

@ruanitto
Copy link
Contributor

Transform your date to a JS date, like README file: https://github.com/optilude/xlsx-template?tab=readme-ov-file#generating-reports

@satyajitnayk

This comment was marked as resolved.

@ruanitto
Copy link
Contributor

It is not working.

Could you create a repository with your example of use? Maybe by visualizing I can help you.

@satyajitnayk

This comment was marked as resolved.

@satyajitnayk
Copy link

It is not working.

ignore my previous comments. It's working when using js Date instead of plain string.

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

3 participants