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
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting default time in coral datepicker

Avatar

Avatar
Validate 1
Level 1
sharms13
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile

Avatar
Validate 1
Level 1
sharms13
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile
sharms13
Level 1

25-05-2021

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

69 likes

Total Posts

70 posts

Correct Reply

33 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

69 likes

Total Posts

70 posts

Correct Reply

33 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

26-05-2021

@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.

Answers (0)