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

How to remove the time in data-time field? I only want date. #1293

Closed
isaacdarcilla opened this issue Oct 29, 2023 · 2 comments
Closed

How to remove the time in data-time field? I only want date. #1293

isaacdarcilla opened this issue Oct 29, 2023 · 2 comments
Assignees
Labels
Area: Bridge Affects some of the bridge packages Bridge: JSON Schema Affects the uniforms-bridge-json-schema package Type: Question Questions and other discussions

Comments

@isaacdarcilla
Copy link

How to remove the time in data-time field? I only want date.

{"type":"object","title":"Guest","properties":{"name":{"type":"string","label":"Name","placeholder":"My new field"},"newField108":{"type":"string","label":"New Field 108","placeholder":"My new field test","options":[{"id":1698211054322,"label":"Option 1","value":"option-1"},{"id":1698211055409,"label":"Option 2","value":"option-2"},{"id":1698211055745,"label":"Option 3","value":"option-3"}]},"newField293":{"label":"New Field 293","placeholder":"My new field","format":"date-time"}},"required":["name","newField108","newField293"]}

image

Originally posted by @isaacdarcilla in #1291

@kestarumper kestarumper self-assigned this Nov 3, 2023
@kestarumper
Copy link
Member

Hi @isaacdarcilla,
You can use the uniforms: { type: 'date' } keyword to pass additional props to the date field component.

Have a look at the playground example.

@kestarumper kestarumper added Type: Question Questions and other discussions Area: Bridge Affects some of the bridge packages Bridge: JSON Schema Affects the uniforms-bridge-json-schema package labels Nov 3, 2023
@isaacdarcilla
Copy link
Author

Thanks @kestarumper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Bridge Affects some of the bridge packages Bridge: JSON Schema Affects the uniforms-bridge-json-schema package Type: Question Questions and other discussions
Projects
Archived in project
Development

No branches or pull requests

2 participants