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

AWSDateTime formatting in Studio #631

Open
Jshhhh opened this issue Aug 9, 2022 · 1 comment
Open

AWSDateTime formatting in Studio #631

Jshhhh opened this issue Aug 9, 2022 · 1 comment
Labels
feature-request An issue which is a feature-request created by customer studio-ui An issue that needs to be tracked by Studio Console team

Comments

@Jshhhh
Copy link

Jshhhh commented Aug 9, 2022

Is your feature request related to a problem? Please describe.
From AWS Amplify Discord
@bluevalhalla

I have a UI component modified from the StandardCard provided in the Amplify Studio/Figma examples. If I connect it to a text field using the label prop, it pints out an unformatted test string like: 2022-07-29T10:09:01Z. How can I get this to format to something like July 29, 2022 9:01? Localized to the users time zone would be even better!

Describe the solution you'd like

I want to display an AWSDateTime from my data model (images.date) in a user friendly format within the card.

@Jshhhh Jshhhh added feature-request An issue which is a feature-request created by customer studio-ui An issue that needs to be tracked by Studio Console team labels Aug 9, 2022
@ykethan ykethan added the pending-triage An issue that is pending triage label Dec 7, 2022
@hein-j hein-j removed the pending-triage An issue that is pending triage label Dec 7, 2022
@JayRajparaPraxus
Copy link

You need to create slot for that and then need to bind it from code with your date format
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request An issue which is a feature-request created by customer studio-ui An issue that needs to be tracked by Studio Console team
Projects
None yet
Development

No branches or pull requests

4 participants