Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Setting default time in coral datepicker

sharms13
Level 2
Level 2

Hi All,

 

We have a requirement where client want to set the default time as 00:01 in the OOTB coral date picker component. We are using this component in Metadata schema forms.

AEM version :6.5.6

 

Could you help us in assisting as how this can be set or any property needs to be used.

 

Thanks,

Shikha

 

1 Accepted Solution
PulkitJain
Correct answer by
Employee
Employee

@sharms13 

You can set the date picker type to "datetime" and implement something as below with a default time value 00:01:

<coral-datepicker type="datetime" name="field" value="2021-05-27T00:01+05:30" valueformat="YYYY-MM-DD[T]HH:mmZ"....">
</coral-datepicker>

FYI- Any subsequent coral updates may break this implementation so direct change should be avoided unless urgent.

View solution in original post

1 Reply
PulkitJain
Correct answer by
Employee
Employee

@sharms13 

You can set the date picker type to "datetime" and implement something as below with a default time value 00:01:

<coral-datepicker type="datetime" name="field" value="2021-05-27T00:01+05:30" valueformat="YYYY-MM-DD[T]HH:mmZ"....">
</coral-datepicker>

FYI- Any subsequent coral updates may break this implementation so direct change should be avoided unless urgent.

View solution in original post