小编col*_*ion的帖子

Flatpickr mobile format

i am using ember-flatpickr version 2.12.0 and I am facing a formatting issue on mobile devices. I set the property dateFormat to "d.m.Y" which works fine on desktop browsers, but on mobiles formates to "mm/dd/yyyy". Can somebody help me with this? check out the screenshot

  • flatpickr version used: 4.5.4

Here is repro link, just switch your browser to responsive mode or check it on mobile. Thank you for advices

const fp = flatpickr(".date", {
	dateFormat: 'd.m.Y'
});
Run Code Online (Sandbox Code Playgroud)
article { …
Run Code Online (Sandbox Code Playgroud)

javascript datepicker flatpickr

1
推荐指数
1
解决办法
2446
查看次数

标签 统计

datepicker ×1

flatpickr ×1

javascript ×1