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

fix: add custom formatting to datetime picker #918

Conversation

JKMarkowski
Copy link
Contributor

@JKMarkowski JKMarkowski commented Jun 13, 2019

Please provide a link to the associated issue.

fixes #804

Please provide a brief summary of this pull request.

I added possibility to put custom formatting for datetime picker

If this is a new feature, have you updated the documentation?

Added 1 example with usage.

@netlify
Copy link

netlify bot commented Jun 13, 2019

Deploy preview for fundamental-ngx ready!

Built with commit 515c734

https://deploy-preview-918--fundamental-ngx.netlify.com

@JKMarkowski JKMarkowski changed the title add custom formatting to datetime picker fix: add custom formatting to datetime picker Jun 13, 2019
@JKMarkowski JKMarkowski force-pushed the enhancement/#804-add-formatting-to-datetime-picker branch from 1a70ff2 to 5b4bd96 Compare June 13, 2019 10:55
@droshev droshev added this to the sprint 13 - Hot Pie milestone Jun 14, 2019
date.getDate() + ' ' +
getAtLeastTwoDigits(date.getHours()) + '/' +
getAtLeastTwoDigits(date.getMinutes()) + '/' +
getAtLeastTwoDigits(date.getSeconds());
Copy link
Member

Choose a reason for hiding this comment

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

I think this would make more sense:

getAtLeastTwoDigits(date.getHours()) + 'h' +
getAtLeastTwoDigits(date.getMinutes()) + 'm' +
getAtLeastTwoDigits(date.getSeconds() + 's');

Copy link
Member

@mikerodonnell89 mikerodonnell89 left a comment

Choose a reason for hiding this comment

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

see comment

@JKMarkowski
Copy link
Contributor Author

Time delimiters has been changed.

Copy link
Contributor

@MattL75 MattL75 left a comment

Choose a reason for hiding this comment

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

Looks good

@mikerodonnell89 mikerodonnell89 self-requested a review June 17, 2019 20:54
@mikerodonnell89 mikerodonnell89 merged commit 8425549 into SAP:master Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
board
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

add date formatting to datetime picker
4 participants