Date picker with time in Adaptive Form | Community
Skip to main content
Level 2
March 23, 2020
Question

Date picker with time in Adaptive Form

  • March 23, 2020
  • 1 reply
  • 1608 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

vanegi
Adobe Employee
Adobe Employee
July 14, 2020

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/coralui3/Coral.Datepicker.html

 

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