Want to add one more character to dayValues in ion-datetime

스크린샷 2020-03-03 오후 2.56.01

I added one more character after month, but can’t add it to day values.

<ion-datetime displayFormat="YYYY/MMM/D" dayValues="1일,2일,3일,04,05,06,08,09,10, 11, 12, 13, 14" pickerFormat="YYYY/MMM/D" monthShortNames='1월, 2월, 3월, 4월, 5월, 6월, 7월, 8월, 9월, 10월, 11월, 12월' doneText="확인" cancelText="취소" ></ion-datetime>

I tested it as above adding one more character to dayvalues, but it’s works same as above, not showing character but only number
I wrapped ’ ’ but in that cases , it’s not showing values
how can I add one more character to day values?

You are setting dayValues instead of dayShortNames, that’s why it isn’t working.

No, it’s still same


 <ion-datetime displayFormat="YYYY/MMM/D" dayShortNames="01일,02일,03일,04,05,06,08,09,10, 11, 12, 13, 14"  pickerFormat="YYYY/MMM/D"  monthShortNames='1월, 2월, 3월, 4월, 5월, 6월, 7월, 8월, 9월, 10월, 11월, 12월' doneText="확인" cancelText="취소" ></ion-datetime>

only shown number on date like 1 2 3 4 5

You are using ' at monthShortNames, i think it must be "

there’s dayShortNames .

dayShortNames="01일,02일,03일,04,05,06,08,09,10, 11, 12, 13, 14"

it also has one more character after number but it won’t apply …

스크린샷 2020-03-04 오후 8.25.56

ya its happing Thanks for sharing such an amazing Blog.

I think, in this case you are not able to customize the actual text that is displayed, only the days that are selectable. So if you did dayValues="1,2,3" that would make only days 1, 2, 3 of each month selectable.

If your goal is Localization, you should use the locale property: ion-datetime: Ionic API Input for Datetime Format Picker

Thanks, It’s really working.