litepie-datepicker
litepie-datepicker copied to clipboard
Display format and get other format
Hello, How I can display date format in input and get another format as a value
you can format manually before send value to server.
Yes I can do that but I prefer to get the value from the component What I mean, I want to display the date format by example showing month name in Arabic and get other format in value
<LitepieDatepicker
i18n="ar"
:formatter="displayFormatter"
:value-formatter="valueFormatter"
:disable-date="disableDate"
v-model="displayDate"
v-model:value="valueDate"
/>
Okay, I'm not sure if everyone needs this feature or not.
It's surely missed. I want to display a nicely formatted date in input but send ISO formatted dates to API.
you can format before send to API. but I not sure for adding this feature.
Hi! This feature could be useful for me too! Thanks
That'd be great for me too.
@kenhyuwa Any ETA for that? Need any help? Not sure how I would approach this but I could probably help.
@kenhyuwa I think this feature would be great. Any ETA?
Commenting to politely add my voice to support this request. It would be great to be able to format both separately (the shown date and the date sent to the API).
Voting up too, because it's not only a matter of normalizing before sending to server, but also denormalizing server data to populate daterange picker values.
People in Europe are used to the DD/MM/YYYY
format, but we store dates as YYYY-MM-DD
. So when I initialize a date value with [YYYY-MM-DD, YYYY-MM-DD]
format, it yells because the formatter wants an DD/MM/YYYY
format to pretty-print it to the user.