This is a migrated thread and some comments may be shown as answers.

Copy and Paste a Date

3 Answers 319 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 31 Jul 2020, 03:28 PM
Can the DatePicker allow copy and pasting of a date such as "7/31/2020"?

3 Answers, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 03 Aug 2020, 03:14 PM

Hello Roger,

Allowing the paste into the DatePicker would have a lot of cases to control and that is why we have not yet enabled it. If the format is M/d/yyyy, for example, validation for numbers lower or equal to 12 would not be possible when the month is regarded. If the user pastes 8/2/2020 could mean two things - 8th of February 2020 or 2nd of August 2020. This might cause issues as the data that goes to the database might be incorrect and causing the application to misbehave.

That being said, how would you suggest handling the pasting of dates in the component. How would you like from us to handle the format difference of the dates? I am waiting for your feedback on the topic.  

Regards,
Svetoslav Dimitrov
Progress Telerik

0
Shailendrasinh
Top achievements
Rank 1
answered on 25 Mar 2021, 01:43 PM

Hi Steve,

Can we do that? I am also facing the same issue right now..

Can we consider that as "MM/dd/yyyy" and convert into the date format which the datepicker supposed to match?

Thanks,

0
Svetoslav Dimitrov
Telerik team
answered on 30 Mar 2021, 06:46 AM

Hello Shailendrasinh,

We have an open feature request for pasting a date with the same format. I have given your Vote for it and you can Follow it to receive email notifications on status updates. In the public thread, you can find more information on the current situation and why we did not provide it already. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DatePicker
Asked by
Roger
Top achievements
Rank 1
Answers by
Svetoslav Dimitrov
Telerik team
Shailendrasinh
Top achievements
Rank 1
Share this question
or