vazco / uniforms

A React library for building forms from any schema.

Home Page:https://uniforms.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

isaacdarcilla opened this issue · comments

commented

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

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.

commented