Expand my Community achievements bar.

Date picker with time in Adaptive Form

Avatar

Level 2

Hi, 

Do we have Date picker component with Time to add to an Adaptive form.
I’ve looked into core components and we have only date picker but not time.

Also I’ve looked into Granite UI Components ( https://wcm.io/wcm/ui/granite/components.html ) which has date time resourceType but this is only for authoring or developing a dialog.

Could you please advice on how to show date time component on an adaptive Form. This data field
is mapped to datetime colum in database.

 

Thanks & Regards

  Suresh

1 Reply

Avatar

Employee

You can implement OOTB date picker component for this use case. Datepicker formats works in accordance to moment.js display formats [1]. Check [2] for more details.

 

[1] : http://momentjs.com/docs/#/displaying/

 

[2]: https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/coral-ui/c...

 

DatePicker:-/libs/granite/ui/components/coral/foundation/form/datepicker [https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui...]