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

formatDate #1924

Closed
wants to merge 1 commit into from
Closed

formatDate #1924

wants to merge 1 commit into from

Conversation

DmitryVolchokFE
Copy link

No description provided.

@DmitryVolchokFE
Copy link
Author

I wanted to get recommendations on the code, I'm sure it's possible better.

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but your code looks very well

Comment on lines +15 to +17
fromDate[fromFormat[0]] = arrDate[0];
fromDate[fromFormat[1]] = arrDate[1];
fromDate[fromFormat[2]] = arrDate[2];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the loop here

Comment on lines +29 to +33
resultArr.push(
fromDate[toFormat[0]],
fromDate[toFormat[1]],
fromDate[toFormat[2]],
);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

@DmitryVolchokFE DmitryVolchokFE closed this by deleting the head repository Aug 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants